Mojo function
relu
relu[type: DType, simd_width: Int](x: SIMD[type, simd_width]) -> SIMD[type, simd_width]
Compute the Relu Op using the equation .
Parameters:
- type (
DType
): DType used for the computation. - simd_width (
Int
): SIMD width used for the computation.
Args:
- x (
SIMD[type, simd_width]
): The value to compute the RELU operation on.
Returns:
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!