Attention_ocr.pytorch icon indicating copy to clipboard operation
Attention_ocr.pytorch copied to clipboard

您好,大佬问您一个问题,为什么attention解码训练的时候,都要重置 decoder_hidden = decoder.initHidden(b).cuda()参数呢

Open wuxiaolianggit opened this issue 4 years ago • 0 comments
trafficstars

您好,大佬问您一个问题,为什么attention解码训练的时候,都要重置 decoder_hidden = decoder.initHidden(b).cuda()参数呢,我的理解应该是编码层输出会有一个decoder_hidden 参数啊,大佬可以解答一下吗? @chenjun2hao

wuxiaolianggit avatar Dec 16 '20 09:12 wuxiaolianggit