这篇博客并不准备做详细介绍,只是简单总结一下问题:
https://pytorch.org/tutorials/intermediate/seq2seq_translation_tutorial.html
这里给出的Decoder Attention是有问题的,具体可以参看这里:https://zhuanlan.zhihu.com/p/68637282
经过我尝试,发现在这里有两篇Tutorial:
https://github.com/spro/practical-pytorch/tree/master/seq2seq-translation
其中这篇是可以用的:
https://github.com/spro/practical-pytorch/blob/master/seq2seq-translation/seq2seq-translation.ipynb
我用的上面这个链接中的AttnDecoderRNN。
就总结这么多。