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

Getting runtime error for sizes of tensors not matching #36

Closed
masheendream opened this issue Nov 24, 2019 · 1 comment
Closed

Getting runtime error for sizes of tensors not matching #36

masheendream opened this issue Nov 24, 2019 · 1 comment

Comments

@masheendream
Copy link

RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 0. Got 705664 and 58368 in dimension 1 at /pytorch/torch/lib/TH/generic/THTensorMath.c:2897

My batch size is 64 instead of the initial 128. It would not run with 128, was getting a divide by 0 error for 128 batch size. I do not know if this could be a factor, but thought it would be worth mentioning.

Has anyone encountered this problem, what fixes are there?

@masheendream
Copy link
Author

I used a DAW to split audio into 8 second chunks, something during that process caused the problem. I referenced @MichaelHanzai addition on issue #34 , and saw how to get the .sh script to split audio to work on google colab.

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