ask for help about "TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first." #1098
Unanswered
yanyuechuixue
asked this question in
Q&A
Replies: 1 comment
-
@yanyuechuixue can you try this without:
P.S. you dont have to apologise for asking - the problem looks cool :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone, I am a beginner of ML and I am trying to use deepxde to solve a partial differential equation (PDE) for my machine learning project.
I was able to run the code with the tensorflow backend, but when I tried running it with pytorch, I encountered an error.
I have searched through various issues and discussions related to this problem and I think this issue on GitHub (#1046) might be related to my problem, but I am not sure because I am a very beginner in machine learning and may not be able to fully understand it.
I apologize for any inconvenience I may have caused to the community by asking such a simple and specific question.
my code is
and the error is :
By the way, I found the cpu utilization is 100% (but just one core) and the GPU utilization is only 7%. Is that means any error in my code?
Thanks all of you !
Beta Was this translation helpful? Give feedback.
All reactions