Spaces:
Runtime error
Runtime error
Feliks Zaslavskiy
commited on
Commit
·
ff208e8
1
Parent(s):
d75ae5b
tweak
Browse files- check_for_metal.py +3 -1
check_for_metal.py
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
import torch
|
2 |
|
3 |
if not torch.backends.mps.is_available():
|
4 |
-
print("MPS is available")
|
|
|
|
|
|
1 |
import torch
|
2 |
|
3 |
if not torch.backends.mps.is_available():
|
4 |
+
print("MPS is available")
|
5 |
+
else:
|
6 |
+
print("MPS not available")
|