Skip to content

Official documentation

torch.cuda.is_available: PyTorch documentation (version 2.14)

PyTorch contributors, PyTorch, 2026

Read the original

Read 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

Pages that rest on this source

torch.cuda.is_available: PyTorch documentation (version 2.14) | Yap