ZhuiyiTechnology / t5-pegasus

中文生成式预训练模型
Apache License 2.0
557 stars 84 forks source link

缺少self.last_token函数 #19

Closed yxwsfz closed 3 years ago

yxwsfz commented 3 years ago

你好,在finetune.py文件中提示缺少self.last_token函数

class AutoTitle(AutoRegressiveDecoder): """seq2seq解码器 """ @AutoRegressiveDecoder.wraps(default_rtype='probas') def predict(self, inputs, output_ids, states): c_encoded = inputs[0] return self.last_token(decoder).predict([c_encoded, output_ids])