def rank_of

bendtorch-core@0.1.0.0 · src/autograd/reduce_PROOF.bend:161

import bendtorch-core@0.1.0.0/src/autograd/reduce_PROOF.bend as ReducePROOF
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape

161def rank_of(+shape: Shape.Shape) -> Shape.LE(Shape.rank_dimensions(Shape.dimensions(shape)), 4n):
162  match shape:
163    case Shape.SShape{dims, size, exact, rank_bound, capacity_bound}:
164      rank_bound

Uses (4)

Used by (1)