【文件属性】:
文件名称:简单地读懂Bert代码
文件大小:213KB
文件格式:PDF
更新时间:2021-01-06 23:34:42
Bert代码初识
简单读懂代码
modeling.py–定义一个bert模型的主体结构
BertConfig类
BertModel类中所需要的超参数
定义从python dict中生成BertConfig的方法 from_dict(cls, json_object)
定义从json中生成BertConfig的方法 from_json_file(cls, json_file)
定义将BertConfig转换为python dict的方法 to_dict(self)
定义将BertConfig转换为json字符串的方法 to_json_string(self)
BertModel类
定义了激活函数