def length_owner_count
bendtorch-core@0.1.0.0 · src/tensor/observation.bend:400
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
400def length_owner_count(+shape: Shape.Shape, result: Result<&2, &1, Core.Error, Core.Tensor<shape>>) -> Maybe<&2, U32>:
401 match result:
402 case Fail{error}:
403 None{}
404 case Done{tensor}:
405 length_owner_count_pair(shape, Core.length(shape, tensor))