def read_certificate_pair

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

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

140def read_certificate_pair(-shape: Shape.Shape, -original: Tensor<shape>, -index: U32,
141  pair: Tensor<shape> & Result<&2, &2, Error, F32>,
142  exact: {pair == read_flat(shape, original, index) : Tensor<shape> & Result<&2, &2, Error, F32>}) -> Read<shape, original, index>:
143  (tensor, result) = pair
144  Read{tensor, result, exact}

Uses (10)

Used by (1)