| TORCH_LIBRARY_EXPAND(TORCH_EXTENSION_NAME, ops) { | |
| ops.def("selective_update(Tensor! out, Tensor input) -> ()"); | |
| ops.impl("selective_update", torch::kCPU, &selective_update); | |
| ops.impl("selective_update", torch::kCUDA, &selective_update); | |
| ops.impl("selective_update", torch::kMPS, selective_update); | |
| ops.impl("selective_update", torch::kXPU, &selective_update); | |
| } | |
| REGISTER_EXTENSION(TORCH_EXTENSION_NAME) |