This repo contains the source code in my personal column (https://zhuanlan.zhihu.com/zhaoyeyu), implemented using Python 3.6. Including Natural Language Processing and Computer Vision projects, such as text generation, machine translation, deep convolution GAN and other actual combat code.
作者您好,我在试您的代码时发现您写的下面这个可视化函数最终得不到您展示出来的效果图,请问是什么原因呢? def plot_attention(sentence, Tx=20, Ty=25): """ 可视化Attention层
我print了一下attention_map数组的结果,发现数值全部都是0.05.