Possible error that may occur #107
Replies: 1 comment 1 reply
-
Hi @zhangxin702,
In AstroPhot I have code like this all over the place, as well as a bunch of I hope that helps! Let me know if there is anything else. Best, |
Beta Was this translation helpful? Give feedback.
-
Hello, I have noticed that when I call the function gaussian_torch(R, sigma, I0), I often encounter the following error: "RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!" However, adding the code '
R = R.to(I0.device)
sigma = sigma.to(I0.device)
' inside this function can solve the issue.
Beta Was this translation helpful? Give feedback.
All reactions