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

beam search using DynamicAttentionWrapper #15

Open
yangshao opened this issue Jul 30, 2017 · 0 comments
Open

beam search using DynamicAttentionWrapper #15

yangshao opened this issue Jul 30, 2017 · 0 comments

Comments

@yangshao
Copy link

Hi, I'm trying to use this beam search code for attentioned to seq2seq model. the type of the decoding cell is <tensorflow.contrib.seq2seq.python.ops.dynamic_attention_wrapper.DynamicAttentionWrapper
and initial state is: DynamicAttentionWrapperState(cell_state=LSTMStateTuple(c=<tf.Tensor 'Test/seq2seq_att/social_bot/tower_0/Decoder/decoder/decoder_1/while/Identity_5:0' shape=(?, 2048) dtype=float32>, h=<tf.Tensor 'Test/seq2seq_att/social_bot/tower_0/Decoder/decoder/decoder_1/while/Identity_6:0' shape=(?, 2048) dtype=float32>), attention=<tf.Tensor 'Test/seq2seq_att/social_bot/tower_0/Decoder/decoder/decoder_1/while/Identity_7:0' shape=(?, 2048) dtype=float32>)

This code seems not work. how should change the code for the new api? Thanks.

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