python > import torch > >>> torch.cuda.is_available()

python
import torch
>>> torch.cuda.is_available()
Was this page helpful?