Add kernel for GeGLU with approximate GELU (#3337)

This commit is contained in:
Woosuk Kwon
2024-03-12 22:06:17 -07:00
committed by GitHub
parent 49a3c8662b
commit 602358f8a8
5 changed files with 49 additions and 7 deletions

View File

@@ -61,6 +61,10 @@ void gelu_and_mul(
torch::Tensor& out,
torch::Tensor& input);
void gelu_tanh_and_mul(
torch::Tensor& out,
torch::Tensor& input);
void gelu_new(
torch::Tensor& out,
torch::Tensor& input);