WaveCut's picture
Organize runtime and kernel code under src
44f9814 verified
Raw
History Blame Contribute Delete
421 Bytes
#include <torch/library.h>
#include "registration.h"
#include "torch_binding.h"
TORCH_LIBRARY_EXPAND(TORCH_EXTENSION_NAME, ops) {
ops.def("orbitquant_gemv(Tensor! out, Tensor x, Tensor w, Tensor xn, Tensor wn, Tensor ac, Tensor wc, Tensor bias, bool has_bias, float activation_scale, float weight_scale) -> ()");
ops.impl("orbitquant_gemv", torch::kCUDA, &orbitquant_gemv);
}
REGISTER_EXTENSION(TORCH_EXTENSION_NAME)