For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo module
activations
The module contains implementations of activation functions.
Functions
-
elu: Compute the Elu Op using the equation . -
gelu: Compute the exact GELU activation using the equation . -
gelu_quick: Compute the quick (sigmoid) approximation of the GELU activation: . -
gelu_tanh: Compute the tanh approximation of the GELU activation: . -
leaky_relu: Compute the Leaky ReLU using the equation . -
relu: Compute the Relu Op using the equation . -
relu_n1: Compute the Relu N1 Op using the equation . -
sigmoid: Compute the sigmoid activation using the equation . -
sign: Compute the sign (0, 1) of the input value. -
silu: Compute the SiLU (Swish) activation using the equation .