def FillFrame

bendtorch-core@0.1.0.0 · src/tensor/construction_PROOF.bend:163

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

163def FillFrame(-shape: Shape.Shape, -original: Core.Tensor<shape>, +cursor: Nat, -tensor: Core.Tensor<shape>) -> Type:
164  @+index: U32 -> @earlier: Shape.LT(U32.to_nat(index), cursor) ->
165    @checked: Core.ObservationChecked(Core.Packed{shape, original}, index) ->
166      Core.ObservationChecked(Core.Packed{shape, tensor}, index) &
167        {Core.checked_observe(shape, tensor, index) == Core.checked_observe(shape, original, index) : Maybe<&2, F32>}

Uses (12)

Used by (7)