920232796 / bert_seq2seq

pytorch实现 Bert 做seq2seq任务,使用unilm方案,现在也可以做自动摘要,文本分类,情感分析,NER,词性标注等任务,支持t5模型,支持GPT2进行文章续写。
Apache License 2.0
1.28k stars 208 forks source link

model.roberta_model.BertEmbeddings类的forward方法下第一个else中的inputs_embeds没有定义 #23

Open Alxe1 opened 3 years ago

Alxe1 commented 3 years ago

model.roberta_model.BertEmbeddings类的forward方法下第一个else中的inputs_embeds没有定义

920232796 commented 3 years ago

这个没事~ 基本永远不会进入else里面, 一般都会传入input ids的,我改一下。