def reduced

bendtorch-core@0.1.0.0 · src/autograd/tensor_backward.bend:187

import bendtorch-core@0.1.0.0/src/autograd/tensor_backward.bend as TensorBackward
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
import bendtorch-core@0.1.0.0/src/autograd/sum_to_size.bend as SumToSize

187# A contribution for operand target: g reduced to the operand's shape. g comes
188# back unchanged.
189def reduced(+target: Nat, +shape: Shape.Shape, g: Core.Dynamic) -> Core.Dynamic & Result<&2, &1, Error, Contribution>:
190  delivered_as(target, shape, SumToSize.sum_to_size(g, shape))

Uses (9)

Used by (5)