WaveCut's picture
Add ordered and approximate INT8 attention decode layouts
99323da verified
Raw
History Blame Contribute Delete
416 Bytes
#include <torch/library.h>
#include "registration.h"
#include "torch_binding.h"
TORCH_LIBRARY_EXPAND(TORCH_EXTENSION_NAME, ops) {
ops.def("split_k_attention(Tensor! out, Tensor! partial, Tensor! stats, Tensor q, Tensor k, Tensor v, Tensor kscale, Tensor vscale, Tensor lengths, int partitions) -> ()");
ops.impl("split_k_attention", torch::kCUDA, &split_k_attention);
}
REGISTER_EXTENSION(TORCH_EXTENSION_NAME)