File size: 398 Bytes
27813b0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #include <torch/library.h>
#include "registration.h"
#include "torch_binding.h"
TORCH_LIBRARY_EXPAND(TORCH_EXTENSION_NAME, ops) {
ops.def(
"rp_resample(Tensor! out, Tensor x, Tensor taps, Tensor start, "
"Tensor len, Tensor off, int L, int M) -> ()");
#if defined(CPU_KERNEL)
ops.impl("rp_resample", torch::kCPU, &rp_resample);
#endif
}
REGISTER_EXTENSION(TORCH_EXTENSION_NAME)
|