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

Train with Variable Length Labels #4

Open
mesakarghm opened this issue Sep 20, 2020 · 1 comment
Open

Train with Variable Length Labels #4

mesakarghm opened this issue Sep 20, 2020 · 1 comment

Comments

@mesakarghm
Copy link

I'm trying to train the model with Variable length labels. While the model trains well with batch size 1, I run into an error when using batch size >= 2

Cannot batch tensors with different shapes in component 1. First element had shape [9] and element 1 had shape [10]. [Op:IteratorGetNextSync]

@Amuqeet09
Copy link

You may add a space in labels, to make it equal or use label.ljust(10) in Loader.py.

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