def plan

bendtorch-core@0.1.0.0 · src/autograd/sum_dims.bend:104

import bendtorch-core@0.1.0.0/src/autograd/sum_dims.bend as SumDims
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape

104# The sum's plan for an input of this shape, or the refusal of its axes.
105def plan(+shape: Shape.Shape, +axes: List<&2, U32>) -> Result<&2, &2, Error, Plan>:
106  plan_checked(axes, Shape.dimensions(shape), refusal(axes, limit(Shape.dimensions(shape))))

Uses (10)

Used by (8)