Download api/test_pytorch.py from yanzoka/emotion: direct link, hf CLI and curl.
- Browser
- Download file 180 Bytes
-
https://huggingface.co/yanzoka/emotion/resolve/main/api/test_pytorch.py
- Command line
-
hf download hf://yanzoka/emotion/api/test_pytorch.py
-
curl -L -o test_pytorch.py https://huggingface.co/yanzoka/emotion/resolve/main/api/test_pytorch.py
180 Bytes
| import torch | |
| def main(): | |
| print(f"PyTorch version: {torch.__version__}") | |
| print("CUDA Available:", torch.cuda.is_available()) | |
| if __name__ == "__main__": | |
| main() | |