def owner_count_pair

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

import bendtorch-core@0.1.0.0/src/tensor/metadata_contract.bend as MetadataContract
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
import bendtorch-core@0.1.0.0/src/tensor/observation.bend as Observation

40def owner_count_pair(+shape: Shape.Shape, pair: Core.Tensor<shape> & Nat) ->
41  {Observation.length_owner_count_pair(shape, pair) == Some{Shape.count(shape)} : Maybe<&2, U32>}:
42  (tensor, number) = pair
43  {==}

Uses (9)

Used by (1)