Mojo function
relu
relu(value: Symbol) -> Symbol
Computes the elementwise relu of a symbolic tensor.
Creates a new op node to compute the elementwise relu of a symbolic tensor and adds it to the graph, returning the symbolic result.
Args:
- βvalue (
Symbol
): The symbolic tensor to use as the input to the relu computation.
Returns:
A new symbolic tensor value representing the output of the absolute value computation.
Raises:
If the symbol doesn't represent a tensor value.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
π What went wrong?