def plan
import bendtorch-core@0.1.0.0/src/autograd/sum_dims.bend as SumDimsimport 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)
- bendtorch-core@0.1.0.0/src/autograd/sum_dims:sum_dims
- bendtorch-core@0.1.0.0/src/autograd/tensor_backward:dims_shaped
- bendtorch-core@0.1.0.0/src/autograd/sum_dims_LAWS:sum_dims_drops
- bendtorch-core@0.1.0.0/src/autograd/sum_dims_LAWS:sum_dims_keepdim
- bendtorch-core@0.1.0.0/src/autograd/sum_dims_LAWS:sum_dims_plan_dimensions
- …