-
Notifications
You must be signed in to change notification settings - Fork 193
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
有大佬知道cuda:0 device type tensor to numpy怎么解决 #128
Comments
What exactly is the error |
在tensor变量后面加.cpu() |
i changed it in lines 120-121 :
and it's worked |
It works! Thank you! |
请问下改了这里之后你们训练会遇到损失降不下来的情况吗?我PSNR一直上不去,后面训练的都不如前面的很低很低,这是什么情况呢? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.
The text was updated successfully, but these errors were encountered: