Kernels
mamba3-mimo / torch-ext /torch_binding.cpp
Ashiedu's picture
Initial kernel bundle upload: mamba3-mimo
cd02be3 verified
Raw
History Blame Contribute Delete
586 Bytes
#include <torch/library.h>
#include "registration.h"
#include "torch_binding.h"
TORCH_LIBRARY_EXPAND(TORCH_EXTENSION_NAME, ops) {
ops.def("mamba3_mimo(Tensor! out, Tensor input) -> ()");
#if defined(CPU_KERNEL)
ops.impl("mamba3_mimo", torch::kCPU, &mamba3_mimo);
#elif defined(CUDA_KERNEL) || defined(ROCM_KERNEL)
ops.impl("mamba3_mimo", torch::kCUDA, &mamba3_mimo);
#elif defined(METAL_KERNEL)
ops.impl("mamba3_mimo", torch::kMPS, mamba3_mimo);
#elif defined(XPU_KERNEL)
ops.impl("mamba3_mimo", torch::kXPU, &mamba3_mimo);
#endif
}
REGISTER_EXTENSION(TORCH_EXTENSION_NAME)