powered by
Gelu
nnf_gelu(input)
(N,*) tensor, where * means, any number of additional dimensions
Applies element-wise the function \(GELU(x) = x * \Phi(x)\)
where \(\Phi(x)\) is the Cumulative Distribution Function for Gaussian Distribution.
See Gaussian Error Linear Units (GELUs).