AssertionError CUDA enabled

AssertionError: Torch not compiled with CUDA enabled

how to solve this erorr if i am working on cpu

Is this an “import torch” error? Maybe you installed the wrong version? How did you install Pytorch, from source? I recommend uninstalling and then installing via

conda install pytorch-cpu torchvision-cpu -c pytorch