Download build/torch-universal/_ops.py from kernels-test/python-invalid-dep: direct link, hf CLI and curl.
- Browser
- Download file 205 Bytes
-
https://huggingface.co/kernels-test/python-invalid-dep/resolve/main/build/torch-universal/_ops.py
- Command line
-
hf download hf://kernels-test/python-invalid-dep/build/torch-universal/_ops.py
-
curl -L -o _ops.py https://huggingface.co/kernels-test/python-invalid-dep/resolve/main/build/torch-universal/_ops.py
205 Bytes
| import torch | |
| ops = torch.ops._flattened_build_19700101000000 | |
| def add_op_namespace_prefix(op_name: str): | |
| """ | |
| Prefix op by namespace. | |
| """ | |
| return f"_flattened_build_19700101000000::{op_name}" |