Download torch-ext/torch_binding.cpp from kernels-test/relu-metal: direct link, hf CLI and curl.
- Browser
- Download file 262 Bytes
-
https://huggingface.co/kernels-test/relu-metal/resolve/main/torch-ext/torch_binding.cpp
- Command line
-
hf download hf://kernels-test/relu-metal/torch-ext/torch_binding.cpp
-
curl -L -o torch_binding.cpp https://huggingface.co/kernels-test/relu-metal/resolve/main/torch-ext/torch_binding.cpp
262 Bytes
| TORCH_LIBRARY_EXPAND(TORCH_EXTENSION_NAME, ops) { | |
| ops.def("relu(Tensor input) -> Tensor"); | |
| ops.impl("relu", torch::kMPS, mps_relu); | |
| } | |
| REGISTER_EXTENSION(TORCH_EXTENSION_NAME) | |