For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/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 .
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!