API symbolsnn
Copy
tensorplay.nn.functional.gelu
- tensorplay.nn.functional.gelu(input, approximate='none') Tensor[source]
When approximate is ‘none’, applies \(\text{GELU}(x) = x * \Phi(x)\); ‘tanh’ uses the tanh estimation.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?
