← All tasks
💻
Intermediate

Check for a GPU in Python

⏱ 7 min ⭐ 200 XP 🔁 3 attempts allowed

What you'll do

Run Python one-liner printing torch.cuda.is_available().

Scenario

Is CUDA available?

Ready to try it?

Create a free account and subscribe to take "Check for a GPU in Python". Earn 200 XP and track your internship progress.

Already have an account? Sign in