torch.cuda.is_available torch.cuda.is_available() Return a bool indicating if CUDA is currently available.