Spaces:
Sleeping
Sleeping
Download src/preprocess/test_torch.py from muhgalal/replacement-scout: direct link, hf CLI and curl.
- Browser
- Download file 125 Bytes
-
https://huggingface.co/spaces/muhgalal/replacement-scout/resolve/main/src/preprocess/test_torch.py
- Command line
-
hf download hf://spaces/muhgalal/replacement-scout/src/preprocess/test_torch.py
-
curl -L -o test_torch.py https://huggingface.co/spaces/muhgalal/replacement-scout/resolve/main/src/preprocess/test_torch.py
125 Bytes
| import torch | |
| print(torch.cuda.is_available()) | |
| print(torch.cuda.get_device_name(0) if torch.cuda.is_available() else "No GPU") |