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

TypeError: sequence_softmax() got an unexpected keyword argument 'x' #88

Closed
peterzhang2029 opened this issue Mar 19, 2018 · 0 comments · Fixed by #89
Closed

TypeError: sequence_softmax() got an unexpected keyword argument 'x' #88

peterzhang2029 opened this issue Mar 19, 2018 · 0 comments · Fixed by #89

Comments

@peterzhang2029
Copy link
Contributor

The error occurs when training with machine_translation.py:

Traceback (most recent call last):
  File "machine_translation.py", line 336, in <module>
    train()
  File "machine_translation.py", line 251, in train
    max_length=args.max_length)
  File "machine_translation.py", line 208, in seq_to_seq_net
    decoder_size)
  File "machine_translation.py", line 184, in lstm_decoder_with_attention
    context = simple_attention(encoder_vec, encoder_proj, hidden_mem)
  File "machine_translation.py", line 161, in simple_attention
    x=attention_weights)
TypeError: sequence_softmax() got an unexpected keyword argument 'x'
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

Successfully merging a pull request may close this issue.

1 participant