Official documentation
torch.cuda.is_available: PyTorch documentation (version 2.14)
PyTorch contributors, PyTorch, 2026
Read the originalRead on October 17, 2026
- What it is
- The reference page for torch.cuda.is_available, the PyTorch function that tells a program whether CUDA, NVIDIA's GPU computing platform, is available to it. It returns a bool.
- How much weight it carries
- Official reference documentation from the PyTorch project. It describes what the function returns, not how any particular program uses the answer.
Facts taken from this source
- PyTorch's torch.cuda.is_available() function returns a bool that says whether CUDA is currently available to the program.
“Return a bool indicating if CUDA is currently available.” (torch.cuda.is_available, description and return type)