Download torch-ext/torch_binding.cpp from replicate/template: direct link, hf CLI and curl.
- Browser
- Download file 722 Bytes
-
https://huggingface.co/replicate/template/resolve/main/torch-ext/torch_binding.cpp
- Command line
-
hf download hf://replicate/template/torch-ext/torch_binding.cpp
-
curl -L -o torch_binding.cpp https://huggingface.co/replicate/template/resolve/main/torch-ext/torch_binding.cpp
722 Bytes
| TORCH_LIBRARY_EXPAND(TORCH_EXTENSION_NAME, ops) { | |
| ops.def("__KERNEL_NAME_NORMALIZED__(Tensor! out, Tensor input) -> ()"); | |
| ops.impl("__KERNEL_NAME_NORMALIZED__", torch::kCPU, &__KERNEL_NAME_NORMALIZED__); | |
| ops.impl("__KERNEL_NAME_NORMALIZED__", torch::kCUDA, &__KERNEL_NAME_NORMALIZED__); | |
| ops.impl("__KERNEL_NAME_NORMALIZED__", torch::kMPS, __KERNEL_NAME_NORMALIZED__); | |
| ops.impl("__KERNEL_NAME_NORMALIZED__", torch::kXPU, &__KERNEL_NAME_NORMALIZED__); | |
| } | |
| REGISTER_EXTENSION(TORCH_EXTENSION_NAME) | |