vram
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ def greet(n):
|
|
| 12 |
if torch.cuda.is_available():
|
| 13 |
total_memory_bytes = torch.cuda.get_device_properties(0).total_memory
|
| 14 |
gb = total_memory_bytes / (1024**3)
|
| 15 |
-
print(f"VRAM 0: {gb:.2f} GB"
|
| 16 |
else:
|
| 17 |
print("CUDA is NOT available")
|
| 18 |
return f"Hello {zero + n} Tensor"
|
|
|
|
| 12 |
if torch.cuda.is_available():
|
| 13 |
total_memory_bytes = torch.cuda.get_device_properties(0).total_memory
|
| 14 |
gb = total_memory_bytes / (1024**3)
|
| 15 |
+
print(f"VRAM 0: {gb:.2f} GB")
|
| 16 |
else:
|
| 17 |
print("CUDA is NOT available")
|
| 18 |
return f"Hello {zero + n} Tensor"
|