def rank_of
import bendtorch-core@0.1.0.0/src/autograd/broadcast_PROOF.bend as BroadcastPROOFimport Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
287def rank_of(+shape: Shape.Shape) -> Shape.LE(Shape.rank_dimensions(Shape.dimensions(shape)), 4n):
288 match shape:
289 case Shape.SShape{dims, size, exact, rank_bound, capacity_bound}:
290 rank_bound