AlphaZeroSimple icon indicating copy to clipboard operation
AlphaZeroSimple copied to clipboard

Changes required for execution on CPU (without CUDA)

Open shanemcandrewai opened this issue 3 years ago • 0 comments

Hi Josh,

In order to better understand the code, I tested it with plain pytorch without CUDA but it failed with AssertionError: Torch not compiled with CUDA enabled from File trainer.py, line 83, in train boards = boards.contiguous().cuda(). Is it sufficient to simply comment out the three lines with ending in .cuda() starting from boards = boards.contiguous().cuda()?

shanemcandrewai avatar Dec 02 '22 09:12 shanemcandrewai