Download clean/video/pwtf_dvd/inference/utils/torch_save.py from deepsafe/model-code: direct link, hf CLI and curl.
- Browser
- Download file 185 Bytes
-
https://huggingface.co/deepsafe/model-code/resolve/main/clean/video/pwtf_dvd/inference/utils/torch_save.py
- Command line
-
hf download hf://deepsafe/model-code/clean/video/pwtf_dvd/inference/utils/torch_save.py
-
curl -L -o torch_save.py https://huggingface.co/deepsafe/model-code/resolve/main/clean/video/pwtf_dvd/inference/utils/torch_save.py
185 Bytes
| import torch | |
| def torch_save(arr,file): | |
| if torch.__version__>="1.6.0": | |
| torch.save(arr, file, _use_new_zipfile_serialization=False) | |
| else: | |
| torch.save(arr, file) | |