Spaces:
Sleeping
Sleeping
| import torch | |
| print(f"CUDA Available: {torch.cuda.is_available()}") | |
| if torch.cuda.is_available(): | |
| print(f"Device Name: {torch.cuda.get_device_name(0)}") | |
| print(f"CUDA Version: {torch.version.cuda}") | |
| else: | |
| print("Running on CPU") | |