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 edb99b9 commit e41e87fCopy full SHA for e41e87f
tests/test_prediction_pipeline_device_management.py
@@ -18,7 +18,7 @@ def _test_device_management(model_package: Path, weight_format: WeightsFormat):
18
from bioimageio.core._prediction_pipeline import create_prediction_pipeline
19
from bioimageio.core.digest_spec import get_test_inputs, get_test_outputs
20
21
- if torch.cuda.device_count() == 0:
+ if not hasattr(torch, "cuda") or torch.cuda.device_count() == 0:
22
raise TooFewDevicesException("Need at least one cuda device for this test")
23
24
bio_model = load_description(model_package)
0 commit comments