def length_owner_count_pair

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

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

396def length_owner_count_pair(+shape: Shape.Shape, pair: Core.Tensor<shape> & Nat) -> Maybe<&2, U32>:
397  (tensor, n) = pair
398  count_pair(Core.count(Core.pack(shape, tensor)))

Uses (10)

Used by (2)