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

sequence_mask on batches #6

Open
vilmar-hillow opened this issue May 2, 2018 · 0 comments
Open

sequence_mask on batches #6

vilmar-hillow opened this issue May 2, 2018 · 0 comments

Comments

@vilmar-hillow
Copy link

I've decided to run your code, and notebooks run just fine, with one-shot iterators. However, when I try to run trainer.py (which utilizes batching), I get the following error:
ValueError: maxlen must be scalar for sequence_mask
If I try to remove maxlen argument, I get another error instead:
TypeError: 'Tensor' object cannot be interpreted as an integer

Clearly sequence_mask is not ready for this batched input. How did you tackle this issue? I'm on tensorflow 1.4.

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