Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seq2seq(attention) have wrong comment #42

Open
nomorecoke opened this issue Nov 29, 2019 · 0 comments
Open

seq2seq(attention) have wrong comment #42

nomorecoke opened this issue Nov 29, 2019 · 0 comments

Comments

@nomorecoke
Copy link

nomorecoke commented Nov 29, 2019

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]

@nomorecoke nomorecoke changed the title seq2seq(attention seq2seq(attention) have wrong comment Nov 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant