def relu
import bendtorch-core@0.1.0.0/src/tensor/elementwise.bend as Elementwiseimport Base
54# PyTorch's relu, clamp_min(x, 0): +0.0 where x < 0, else x's own word, so
55# -0.0 stays -0.0 and a NaN keeps its payload.
56def relu(+x: F32) -> F32:
57 zero_if(below_zero(x), x)