| 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) | |
| 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) | |