We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d202cd4 commit 689d2b3Copy full SHA for 689d2b3
tests/e2e/mnist.py
@@ -42,6 +42,11 @@
42
print("ACCELERATOR: is ", os.getenv("ACCELERATOR"))
43
ACCELERATOR = os.getenv("ACCELERATOR")
44
45
+# If GPU is requested but CUDA is not available, fall back to CPU
46
+if ACCELERATOR == "gpu" and not torch.cuda.is_available():
47
+ print("Warning: GPU requested but CUDA is not available. Falling back to CPU.")
48
+ ACCELERATOR = "cpu"
49
+
50
STORAGE_BUCKET_EXISTS = "AWS_DEFAULT_ENDPOINT" in os.environ
51
print("STORAGE_BUCKET_EXISTS: ", STORAGE_BUCKET_EXISTS)
52
tests/e2e/mnist_pip_requirements.txt
@@ -1,4 +1,6 @@
1
+--extra-index-url https://download.pytorch.org/whl/cu118
2
+torch==2.5.1
3
+torchvision==0.20.1
4
pytorch_lightning==1.9.5
5
torchmetrics==0.9.1
-torchvision==0.20.1
6
minio
0 commit comments