-
Notifications
You must be signed in to change notification settings - Fork 230
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
Update to pytorch-0.4 #20
base: master
Are you sure you want to change the base?
Conversation
Works for me on 0.4 |
The code in demo.ipynb requires saber dataset. I switched to the only available dataset in this repo: bach/chaconne, but then I get an error message that ends with : " RuntimeError: Expected object of type torch.FloatTensor but found type torch.cuda.FloatTensor for argument #2 'weight' "
|
Turns out the solution is to put the arguments
Credit to @ianmktu. |
Also you need to move the model to cuda |
Using pytorch-0.4.1 to run this code, I encountered several problems. I'm creating this pull request to propose a solution to these issues.
One blocking issue is related with
generate_fast()
that raise aRuntimeError: the number of sizes provided (1) must be greater or equal to the number of dimensions in the tensor (2)
I also modified to code to avoid warnings:
item()
Variable
are deprecated in favor ofrequires_grad
argsUnfortunately, I could not verify that these modifications are functional on pytorch < 0.4. I'll try to install pytorch 0.3 on another system and see if it is backward compatible.
Thank you very much for this nice code, I was a huge help to understand WaveNet! I hope I could contribute to this project.