File size: 262 Bytes
f701ae7 |
1 2 3 4 5 6 7 8 9 10 11 12 |
#include <torch/library.h>
#include "registration.h"
#include "torch_binding.h"
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)
|