I think I compiled pytorch without CUDA
AssertionError: Torch not compiled with CUDA enabled
I checked with this line
sudo CUDA_HOME="/usr/local/cuda-9.0" python3 setup.py install
it gave me error that it can’t find cuda
CMake Error at /usr/src/pytorch/cmake/FindCUDA/FindCUDA.cmake:644 (message):
  Specify CUDA_TOOLKIT_ROOT_DIR

I don’t understand I have cuda-9.0 installed and I was just using pytorch and theano on cuda. but I can’t run nvcc