Kernels:
Trusted publisher
Download build/torch210-cpu-x86_64-linux/_ops.py from kernels-community/activation: direct link, hf CLI and curl.
- Browser
- Download file 228 Bytes
-
https://huggingface.co/kernels/kernels-community/activation/resolve/v2/build/torch210-cpu-x86_64-linux/_ops.py
- Command line
-
hf download hf://kernels-community/activation@v2/build/torch210-cpu-x86_64-linux/_ops.py
-
curl -L -o _ops.py https://huggingface.co/kernels/kernels-community/activation/resolve/v2/build/torch210-cpu-x86_64-linux/_ops.py
228 Bytes
| import torch | |
| from . import _activation_cpu_96f42ba | |
| ops = torch.ops._activation_cpu_96f42ba | |
| def add_op_namespace_prefix(op_name: str): | |
| """ | |
| Prefix op by namespace. | |
| """ | |
| return f"_activation_cpu_96f42ba::{op_name}" | |