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

Match output dictionary of model.step, ignoring logits return var #1

Closed
wants to merge 1 commit into from

Conversation

ghexp
Copy link

@ghexp ghexp commented Dec 4, 2016

model.step returns five params (logits, loss, accuracy, norm, and update), so logits must be ignored otherwise error is generated (at least in Python 2.7.12):

Traceback (most recent call last):
  File "train.py", line 279, in <module>
    train(FLAGS)
  File "train.py", line 117, in train
    FLAGS.l, FLAGS.e, forward_only=False)
ValueError: too many values to unpack

@ghexp
Copy link
Author

ghexp commented Dec 4, 2016

Fixed by removing logits return instead in latest commit.

@ghexp ghexp closed this Dec 4, 2016
@GokuMohandas
Copy link
Owner

Thank you! I was running it for nmt and noticed I forgot to change it back from testing something.

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 this pull request may close these issues.

None yet

2 participants