rmsnorm_kernel / torch-ext /torch_binding.cpp
EC2 Default User
updates
538355f
raw
history blame contribute delete
307 Bytes
#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)