def write_certificate_pair

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

import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape

291def write_certificate_pair(-shape: Shape.Shape, -original: Tensor<shape>, -index: U32, -value: F32,
292  pair: Tensor<shape> & Result<&2, &2, Error, Unit>,
293  exact: {pair == write_flat(shape, original, index, value) : Tensor<shape> & Result<&2, &2, Error, Unit>}) -> Write<shape, original, index, value>:
294  (tensor, result) = pair
295  Write{tensor, result, exact}

Uses (11)

Used by (1)