-
Notifications
You must be signed in to change notification settings - Fork 53
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
RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu) #16
Comments
Same, been having that problem here too. |
Try changing the line in question to |
Well, now I'm running into this kind of a problem now: Got any ideas on how to solve it?
|
More details with the problem: Somehow this error is thrown out whenever I enabled the "Train with reconstruction" option. |
i had meet this problem too,i uninstalled accelerate and this problem disappeared,but i didn't solve this problem"RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)",so sad,if anyone solve it,tell me,please,i am crazy about it:( |
Do you know why this is happening? I can fix this by changing that line to
logvar_t = self.logvar.to(self.device)[t]
but I don't know why self.logvar is not moved to GPU.The text was updated successfully, but these errors were encountered: