File size: 302 Bytes
4303459 |
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("rmsnorm_forward(Tensor input, Tensor gamma) -> ()");
ops.impl("rmsnorm_forward", torch::kCUDA, &rmsnorm_forward);
}
REGISTER_EXTENSION(TORCH_EXTENSION_NAME) |