(rontolisp) docs
← Functions

torch:add

(torch:add a b)

Differentiable elementwise a + b with numpy-style broadcasting (linalg:add); either operand may be a tensor, a number, an array or a list. The backward pass sums the gradient over every broadcast axis, so a (d) bias added to a (b s d) activation gets the (d) gradient it should.