def length_owner_value
bendtorch-core@0.1.0.0 · src/tensor/observation.bend:367
import bendtorch-core@0.1.0.0/src/tensor/observation.bend as Observation
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
367def length_owner_value(-shape: Shape.Shape, +other: U32, result: Result<&2, &1, Core.Error, Core.Tensor<shape>>) -> Maybe<&2, F32>:
368 match result:
369 case Fail{error}:
370 None{}
371 case Done{tensor}:
372 length_owner_value_pair(shape, other, Core.length(shape, tensor))