graykode / nlp-tutorial

Natural Language Processing Tutorial for Deep Learning Researchers
https://www.reddit.com/r/MachineLearning/comments/amfinl/project_nlptutoral_repository_who_is_studying/
MIT License
14.03k stars 3.9k forks source link

seq2seq(attention) have wrong comment #42

Open nomorecoke opened 4 years ago

nomorecoke commented 4 years ago
context = tf.matmul(attn_weights, enc_outputs)
dec_output = tf.squeeze(dec_output, 0)  # [1, n_step]
context = tf.squeeze(context, 1)  # [1, n_hidden]

I think dec_output shape is [1,n_hidden]