We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ff958b0 + fa456cd commit 246a048Copy full SHA for 246a048
1 file changed
encoding/models/nested_cv.py
@@ -87,6 +87,9 @@ def fit_predict(
87
device = "mps:0"
88
elif torch.cuda.is_available():
89
device = "cuda"
90
+ else:
91
+ # if no GPU is available, fall back to CPU
92
+ device = "cpu"
93
else:
94
device = "cpu"
95
logger.info(f"Using device: {device}")
0 commit comments