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

can someone actually run this code? #16

Open
iriscxy opened this issue Nov 2, 2017 · 0 comments
Open

can someone actually run this code? #16

iriscxy opened this issue Nov 2, 2017 · 0 comments

Comments

@iriscxy
Copy link

iriscxy commented Nov 2, 2017

I'm using win10 system and python3.x tf0.12
It turns out in function beam_attention_decoder the sentence

outputs.append(tf.argmax(nn_ops.xw_plus_b(   output, output_projection[0], output_projection[1]), dimension=1))

should be outputs.append(output) or the shape doesn't match in tf.nn.sampled_softmax_loss.
Even when I solved this problem, the code still meets bugs in model.step. I found that prev in beam_attention_decoder was (batch_size, input_size), which was (32,32). But after the loop_function, it turned into shape (beam_size,input_size)(10,32). Thus the running failed.
Is this code really available?

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