View source: R/nnf-activation.R
nnf_gelu | R Documentation |
Gelu
nnf_gelu(input, approximate = "none")
input |
(N,*) tensor, where * means, any number of additional dimensions |
approximate |
By default it's none, and applies element-wise x*pnorm(x), if 'tanh', then GELU is estimated. See GELU for more info. |
Applies element-wise the function
GELU(x) = x * \Phi(x)
where \Phi(x)
is the Cumulative Distribution Function for
Gaussian Distribution.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.