resample-poly / torch-ext /torch_binding.cpp
phanerozoic's picture
kernel source
27813b0 verified
Raw
History Blame
398 Bytes
#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)