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.
cost = tf.contrib.seq2seq.sequence_loss(training_logits, targets, masks)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Incompatible shapes: [5632] vs. [6400]
就是我的target是(256,25) 可是输出得到的training_logits却是(256, 22, 358)358:词表数
我改了一下,这样就对了