(rontolisp) docs
← Functions

torch:relu

(torch:relu a)

Differentiable elementwise max(x, 0.0) (linalg:relu); the gradient passes where x > 0 and is 0 elsewhere (0 at exactly x = 0, like PyTorch).