tensorflow2.0-coding icon indicating copy to clipboard operation
tensorflow2.0-coding copied to clipboard

Seq2Seq中文聊天机器人,decoder每个time_step更新计算注意力的时候代码是否有误?

Open wangddddddd opened this issue 5 years ago • 0 comments

你好,BahdanauAttention的语句: self.attention(hidden, enc_output)中的hidden层应该是上一个时刻的隐层状态hidden去匹配encoder的隐层状态enc_output, 但是代码中似乎没对hidden进行更新, 循环里每个时刻调用的hidden都是固定的并没有进行更新?还是我理解错了??

wangddddddd avatar Aug 10 '20 06:08 wangddddddd