File size: 353 Bytes
827249e |
1 2 3 4 5 6 7 8 9 10 11 |
#include <torch/library.h>
#include "registration.h"
#include "torch_binding.h"
TORCH_LIBRARY_EXPAND(TORCH_EXTENSION_NAME, ops) {
ops.def("bitlinear_int8xint2_cpp(Tensor input0, Tensor input1, Tensor s, Tensor ws) -> Tensor");
ops.impl("bitlinear_int8xint2_cpp", torch::kCUDA, &bitlinear_int8xint2_cpp);
}
REGISTER_EXTENSION(TORCH_EXTENSION_NAME) |