TensorPlay
latest (dev)
Copy
View Markdown

Latest development documentation · Updated 2026-10-15

tensorplay.nn.functional.gelu

tensorplay.nn.functional.gelu(input, approximate='none') → Tensor[source]

When approximate is ‘none’, applies GELU(x)=x∗Φ(x)\text{GELU}(x) = x * \Phi(x); ‘tanh’ uses the tanh estimation.

On this page

Ask DeepWiki