Qiang
Results
3
comments of
Qiang
已解决,在可视化里面注释掉了相关代码,即可。
可以参考添加add_sos_and_eos函数: def add_sos_and_eos(ys_pad, sos, eos, ignore_id): _sos = ys_pad.new([sos]) _eos = ys_pad.new([eos]) sequences = [y[y != ignore_id] for y in ys_pad] ys_in = [torch.cat([_sos, seq, _eos], dim=0) for seq in...