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