File size: 299 Bytes
e225ed6
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import torch

# Check if PyTorch is installed and environment is working
print("Conda environment is working!")

# Check for GPU availability
if torch.cuda.is_available():
    print("GPU is available!")
    print(f"GPU Name: {torch.cuda.get_device_name(0)}")
else:
    print("GPU is not available.")