def read_value

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

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

132def read_value(-shape: Shape.Shape, pair: Tensor<shape> & Result<&2, &2, Error, F32>) -> Maybe<&2, F32>:
133  (tensor, result) = pair
134  result_value(result)

Uses (9)

Used by (35)