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

Why is args.vocab_size passed in sequence_loss_by_example? #52

Open
chiphuyen opened this issue Feb 17, 2017 · 1 comment
Open

Why is args.vocab_size passed in sequence_loss_by_example? #52

chiphuyen opened this issue Feb 17, 2017 · 1 comment

Comments

@chiphuyen
Copy link

I looked up the documentation for sequence_loss_by_example and it doesn't seem to be taking vocab_size as argument. I'd really appreciate it if you could help me understand what this argument is doing. Thanks a lot!
loss = seq2seq.sequence_loss_by_example([self.logits], [tf.reshape(self.targets, [-1])], [tf.ones([args.batch_size * args.seq_length])], args.vocab_size)

@hksonngan
Copy link

tensorflow version < 1.0 have arg num_decoder_symbols: Integer, number of decoder symbols (output classes).

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

2 participants