Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't set CUDA_HOME when not compiled with CUDA support (pytorch#106310)
It doesn't make sense to set this (on import!) as CUDA cannot be used with PyTorch in this case but leads to messages like > No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda' when CUDA happens to be installed which is at least confusing. Pull Request resolved: pytorch#106310 Approved by: https://github.com/ezyang
- Loading branch information