def rank_bound

bendtorch-core@0.1.0.0 · src/tensor/transpose_PROOF.bend:16

import bendtorch-core@0.1.0.0/src/tensor/transpose_PROOF.bend as TransposePROOF
import 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

Uses (4)

Used by (3)