Closed robot-xyh closed 3 years ago
This looks like a CUDA compatibility error. See on PyTorch forum here.
Do NOT change tensor dimensions unless absolutely required. For most RL implementations, it is a bad idea to change dimensions from what the author has provided unless you know what you are doing and can perform proper checks.
So, if you do decide to change dimensions (like deleted .unsqueeze(dim=0)
) then make sure all the tensor dimensions in update()
function are correct. If they get broadcasted in an unexpected manner; the algorithm will not learn any useful policy without throwing any error and will end up wasting enormous amount of time.
Also, check the Note which I have added now in the Usage section of the README.md
file to run the training on a CPU device.
Thank you very much for your help, I now use the CPU for training, and the program runs very well
Hi I got an error while running the program
On line 107, I deleted
.unsqueeze(dim=0)
,act function can run.But theevaluate
function still reports an error, I don’t know how to modify it.torch : 1.7.0+cu110
thanks