def checked_update_value

bendtorch-core@0.1.0.0 · src/tensor/transform_PROOF.bend:484

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

484def checked_update_value(-shape: Shape.Shape, -original: Core.Tensor<shape>, -output: Core.Tensor<shape>, -index: U32,
485  -value: F32, -unit: Unit, meaning: Core.CheckedUpdateMeaning(shape, original, index, value, (output, Done{unit}))) ->
486  {Core.checked_observe(shape, output, index) == Some{value} : Maybe<&2, F32>}:
487  (checked, rest) = meaning
488  (observed, frame) = rest
489  observed

Uses (10)

Used by (1)