Rate this Page
★★★★★
torch.cuda.is_available#
- torch.cuda.is_available()[source]#
Return a bool indicating if CUDA is currently available.
Note
This function will NOT poison fork if the environment variable
PYTORCH_NVML_BASED_CUDA_CHECK=1is set. For more details, seePoison fork in multiprocessing.- Return type
On this page