def length_owner_length

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

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

378def length_owner_length(-shape: Shape.Shape, result: Result<&2, &1, Core.Error, Core.Tensor<shape>>) -> Maybe<&2, Nat>:
379  match result:
380    case Fail{error}:
381      None{}
382    case Done{tensor}:
383      Some{length_owner_length_pair(shape, Core.length(shape, tensor))}

Uses (8)

Used by (3)