Mojo function
relu
relu[dtype: DType, simd_width: Int](x: SIMD[dtype, simd_width]) -> SIMD[dtype, simd_width]
Compute the Relu Op using the equation .
Parameters:
- โdtype (
DType
): DType used for the computation. - โsimd_width (
Int
): SIMD width used for the computation.
Args:
- โx (
SIMD
): The value to compute the RELU operation on.
Returns:
SIMD
: The result of the RELU operation.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!