File size: 324 Bytes
f9791fd
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <torch/library.h>

#include "registration.h"
#include "torch_binding.h"

TORCH_LIBRARY_EXPAND(TORCH_EXTENSION_NAME, ops) {
  ops.def("first_kernel(Tensor! out, Tensor input) -> ()");
#if defined(METAL_KERNEL)
  ops.impl("first_kernel", torch::kMPS, first_kernel);
#endif
}

REGISTER_EXTENSION(TORCH_EXTENSION_NAME)