rmsnorm_thrust / torch-ext /torch_binding.cpp
medmekk's picture
medmekk HF Staff
Upload custom kernels
4303459 verified
raw
history blame contribute delete
302 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) -> ()");
ops.impl("rmsnorm_forward", torch::kCUDA, &rmsnorm_forward);
}
REGISTER_EXTENSION(TORCH_EXTENSION_NAME)