(rontolisp) docs
← Functions

torch:neg

(torch:neg a)

Differentiable elementwise negation (linalg:negative); the gradient is negated on the way back.