Expand description
AD context for guard-based shape resolution and value metadata queries.
During AD graph construction, linalg rules such as SVD, QR, and LU need
concrete matrix dimensions to choose between structurally different
subgraphs. ShapeGuardContext records those dimension comparisons as guards
so cached AD graphs can later be invalidated when the observed shape
relationship changes.
Structs§
- Shape
Guard - A recorded dimension comparison made during AD graph construction.
- Shape
Guard Context - AD context providing dimension resolution, guard recording, and value metadata.
- Tensor
Meta - Per-value tensor metadata used by AD rules.
Enums§
- Metadata
Registry Error - Error returned when the process-global AD metadata registry is unavailable.
- Shape
Guard Error - Error returned when shape-guard metadata cannot be resolved.
Functions§
- lookup_
global_ metadata - Look up a single metadata entry from the global registry.
Type Aliases§
- Shape
Guard Result - Result type used by shape-guard metadata queries.