Advertisement
gk231192

Module 13.3 Google Colab GPU

Jul 8th, 2025
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. # Check if GPU is available
  2. print("GPU available:", torch.cuda.is_available())
  3.  
  4. # Print GPU name (if available)
  5. if torch.cuda.is_available():
  6.     print("GPU device name:", torch.cuda.get_device_name(0))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement