-
Notifications
You must be signed in to change notification settings - Fork 16
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
Error: "RuntimeError: shape '[1, 0, 2]' is invalid for input of size 15319040" #53
Comments
I think I can reproduce this issue with your envs. Here is my logs:
When I set the
I think it is a bug in the new version of pytorch. |
maybe we can some figure out what op it was doing, to work around it? it's a shame if we can't inference our models in pytorch 2.0.1. |
Not sure if it is relevant I use the same env to train icefall models. I was able to use an Icefall recipe and train a model for 150 epochs using my pytorch 2.0.1. env that is given on top. I am getting an error only when using k2fsa:text_search |
I can't see any stacks, but I think we can first try exporting the model with pythorch 2.0.1. |
Error: "RuntimeError: shape '[1, 0, 2]' is invalid for input of size 15319040"
I had an environment that works on libriheavy and I described here.
But I needed to update the torch and torchaudio to a new version using this command
as lhotse scripts were not recognizing duration of m4a audio files in stage 1 when creating manifest. After upgrading those libraries I started having this error "RuntimeError: shape '[1, 0, 2]' is invalid for input of size 15319040". The code below started throwing an error in this script:
Output of the error:
my environment that is not working for facebook dataset or my dataset. always failing in step3
environment that works but duration for m4a audios was wrong in Lhotse scripts for my dataset, but works well with facebook dataset
The text was updated successfully, but these errors were encountered: