def StateInvariant

bendtorch-core@0.1.0.0 · src/tensor/elementwise.bend:616

import bendtorch-core@0.1.0.0/src/tensor/elementwise.bend as Elementwise
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

616def StateInvariant(+operation: Operation, +plan: Shape.BroadcastPlan, -original_left: Core.Dynamic, -original_right: Core.Dynamic,
617  +cursor: Nat, state: State<Shape.output_shape(plan)>) -> Type:
618  State{left, right, output} = state
619  SameSource(original_left, left) &
620    (SameSource(original_right, right) & PrefixInvariant(operation, plan, original_left, original_right, cursor, Core.Packed{Shape.output_shape(plan), output}))

Uses (9)

Used by (8)