def rank_bound
import bendtorch-core@0.1.0.0/src/tensor/transpose_PROOF.bend as TransposePROOFimport Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
16def rank_bound(+shape: Shape.Shape) -> Shape.LE(Shape.rank_dimensions(Shape.dimensions(shape)), 4n):
17 match shape:
18 case Shape.SShape{dims, size, exact, bound, capacity}:
19 bound