def shape_rank_bound

bendtorch-core@0.1.0.0 · src/tensor/permutation_mapping.bend:432

import bendtorch-core@0.1.0.0/src/tensor/permutation_mapping.bend as PermutationMapping
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape

432def shape_rank_bound(+shape: Shape.Shape) -> Shape.LE(Shape.rank_dimensions(Shape.dimensions(shape)), 4n):
433  match shape:
434    case Shape.SShape{dimensions, size, exact, ranked, capacity}:
435      ranked

Uses (4)

Used by (2)