-
Notifications
You must be signed in to change notification settings - Fork 413
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
IndexError: During training 0-dim tensor error #117
Comments
Hi @divyanshujhawar , |
I think i have the solution for the upper version of pytorch hier: in ganimation.py change:
to:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While executing the train.py file,
IndexError: invalid index of a 0-dim tensor. Use
tensor.item()
in Python ortensor.item<T>()
in C++ to convert a 0-dim tensor to a numberThe complete log has been attached below:
I have run all the previous commands, including the requirements.txt file. While looking for this over the net, I found that it is due to the update in the Pytorch version which does not allow accessing the last element as [0], we need to use .item(). But, even after changing it, I am getting the same error.
Anyone facing the same issues?
The text was updated successfully, but these errors were encountered: