Spaces:
Sleeping
Sleeping
Download backend/core_ml/classification/utils/device.py from NMundhra/OCT-Image-Classifier-Model: direct link, hf CLI and curl.
- Browser
- Download file 195 Bytes
-
https://huggingface.co/spaces/NMundhra/OCT-Image-Classifier-Model/resolve/main/backend/core_ml/classification/utils/device.py
- Command line
-
hf download hf://spaces/NMundhra/OCT-Image-Classifier-Model/backend/core_ml/classification/utils/device.py
-
curl -L -o device.py https://huggingface.co/spaces/NMundhra/OCT-Image-Classifier-Model/resolve/main/backend/core_ml/classification/utils/device.py
195 Bytes
| import os | |
| import torch | |
| from backend.oct_analyzer.constants import get_compute_device | |
| def get_device(): | |
| """Delegates to the global compute device selector.""" | |
| return get_compute_device() | |