def indices_success

bendtorch-core@0.1.0.0 · src/tensor/elementwise_PROOF.bend:634

import bendtorch-core@0.1.0.0/src/tensor/elementwise_PROOF.bend as ElementwisePROOF
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/elementwise.bend as Elementwise

634def indices_success(+plan: Shape.BroadcastPlan, +index: U32,
635  -inside: {Nat.is_lt(U32.to_nat(index), Shape.elements(Shape.output_shape(plan))) == True{} : Bool}) ->
636  IndicesDone<plan, Elementwise.input_indices(plan, index)>:
637  checked_indices_success(plan, index, Shape.bool_case(Nat.is_lt(U32.to_nat(index), Shape.elements(Shape.output_shape(plan)))), inside)

Uses (11)

Used by (2)