File size: 416 Bytes
99323da
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
#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)