Expand description
Runtime shape checks for tensors bound to a graph with static or dynamic dimensions.
RuntimeShapeState validates that bound tensors match the graph’s descriptors: same
rank, static dimensions equal, dynamic dimensions within max_size, and dimensions that
share a name agree across all inputs and outputs. Used by MLContext::dispatch and the
*_checked executor functions.
Structs§
- Runtime
Shape State - Tracks the values bound to named dynamic dimensions during one validation pass.
Enums§
- Tensor
Kind - Whether a binding is a graph input or output; selects the error wording.
Functions§
- validate_
shape_ data_ length - Check that
data_lenelements match the element count ofshape.