File size: 307 Bytes
4303459
 
 
 
 
 
538355f
4303459
 
 
538355f
1
2
3
4
5
6
7
8
9
10
11
12
#include <torch/library.h>

#include "registration.h"
#include "torch_binding.h"

TORCH_LIBRARY_EXPAND(TORCH_EXTENSION_NAME, ops) {
  ops.def("rmsnorm_forward(Tensor input, Tensor gamma) -> Tensor");
  ops.impl("rmsnorm_forward", torch::kCUDA, &rmsnorm_forward);
}

REGISTER_EXTENSION(TORCH_EXTENSION_NAME)