def update_written

bendtorch-core@0.1.0.0 · src/autograd/reduce_PROOF.bend:96

import bendtorch-core@0.1.0.0/src/autograd/reduce_PROOF.bend as ReducePROOF
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

96def update_written(-shape: Shape.Shape, -original: Core.Tensor<shape>, -output: Core.Tensor<shape>, -index: U32, -value: F32, -unit: Unit,
97  meaning: Core.CheckedUpdateMeaning(shape, original, index, value, (output, Done{unit}))) ->
98  {Core.checked_observe(shape, output, index) == Some{value} : Maybe<&2, F32>}:
99  (checked, rest) = meaning
100  (observed, frame) = rest
101  observed

Uses (10)

Used by (1)