You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I'm a bit lost here! Not sure which file I should be fixing. Could you give me a bit more to go on? Maybe add some details to the issue or drop a comment with some extra hints? Thanks!
torch.cuda.is_available()はTrueであるものの、to be on the same device ということでおそらく計算時にcpu/cudaどちらかで計算するように寄せる必要がありそうなメッセージにみえました。
https://discuss.pytorch.org/t/expected-all-tensors-to-be-on-the-same-device-but-found-at-least-two-devices-cuda-0-and-cpu-error/151314/7
Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! error
理想的にはどちらもcudaにするのが良さそうではあるのですが、回避策としてcpuに寄せるのも一つの手ではと思いました。(とても重いconvolution等でなければ、、)
具体的には以下のような感じでcudaを使わないようにコメントアウトしたらcpuで動いてくれたりしないでしょうかね。。
https://raw.githubusercontent.com/seigot/tools/master/tetris/20220315_disable_cuda.patch
+# if torch.cuda.is_available():
+# next_states = next_states.cuda()
The text was updated successfully, but these errors were encountered: