torch:sub
(torch:sub a b)
Differentiable elementwise a - b with numpy-style broadcasting (linalg:sub); the second operand's gradient is negated (and unbroadcast, like torch:add).
(torch:sub a b)
Differentiable elementwise a - b with numpy-style broadcasting (linalg:sub); the second operand's gradient is negated (and unbroadcast, like torch:add).