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 function
elu
def elu[dtype: DType, simd_width: SIMDSize](x: SIMD[dtype, simd_width]) -> SIMD[dtype, simd_width]
Compute the Elu Op using the equation .
Parameters:
- βdtype (
DType): DType used for the computation. - βsimd_width (
SIMDSize): SIMD width used for the computation.
Args:
- βx (
SIMD[dtype, simd_width]): The value to compute the ELU operation on.
Returns:
SIMD[dtype, simd_width]: The result of the ELU operation.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!