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