Spaces:
Build error
Build error
Download utils/base_env.py from DIaac/FGSM_attack_demo: direct link, hf CLI and curl.
- Browser
- Download file 87 Bytes
-
https://huggingface.co/spaces/DIaac/FGSM_attack_demo/resolve/main/utils/base_env.py
- Command line
-
hf download hf://spaces/DIaac/FGSM_attack_demo/utils/base_env.py
-
curl -L -o base_env.py https://huggingface.co/spaces/DIaac/FGSM_attack_demo/resolve/main/utils/base_env.py
87 Bytes
| import torch | |
| device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') | |