Expand description
Shape inference pass.
Propagates tensor shapes through the IR module. For each global variable,
infers the concrete or symbolic shape and stores it in a ShapeMap.
Structs§
- Shape
- Inferred shape of a tensor.
- Shape
Inference - Shape inference pass.
Enums§
- Dim
- A dimension: either a concrete size, a symbolic name, or fully dynamic.
Functions§
- infer_
shapes - Infer shapes for all storage global variables in the module.
- ir_
dim_ to_ dim - Convert an IR
Dimensionto a shape inferenceDim. - unify_
dim - Unify two dimensions according to shape inference rules:
- unify_
shapes - Unify two shapes element-wise. Returns
Noneif ranks differ or any dimension pair is incompatible.
Type Aliases§
- Shape
Map - Map from global variable handles to their inferred shapes.