def plan_left

bendtorch-core@0.1.0.0 · src/autograd/reduce_to_fold_PROOF.bend:86

import bendtorch-core@0.1.0.0/src/autograd/reduce_to_fold_PROOF.bend as ReduceToFoldPROOF
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape

86def plan_left(+target: Shape.Shape, +shape: Shape.Shape, +plan: Shape.BroadcastPlan,
87  planned: {Shape.broadcast_checked(target, shape) == Done{plan} : Result<&2, &2, Shape.Error, Shape.BroadcastPlan>}) ->
88  {Shape.left_shape(plan) == target : Shape.Shape}:
89  Equal.cong(Shape.Shape & Shape.Shape, Shape.Shape, first, (Shape.left_shape(plan), Shape.right_shape(plan)), (target, shape),
90    plan_shapes(target, shape, plan, planned))

Uses (12)

Used by (6)