torch.cuda.is_initialized# torch.cuda.is_initialized()[source]# Return whether PyTorch’s CUDA state has been initialized.
torch.cuda.is_initialized# torch.cuda.is_initialized()[source]# Return whether PyTorch’s CUDA state has been initialized.