A tensor's dimensions, outermost first; the empty shape is a scalar.
Moduleonnxruntime-0.1.0.0GHC2024
OnnxRuntime.Shape
Tensor shapes in row-major order, and the dimensions a model declares.
- 2 types
- 5 values
- Packageonnxruntime-0.1.0.0
- Exports7
- LanguageGHC2024
- LicenceMIT
- SourceShape.hs
Row-major strides: how far apart neighbours along each dimension lie.
The flat offset of a multi-index, when it lies inside the shape.
The multi-index of a flat offset, when it lies inside the shape.
A dimension a model declares: a fixed size, or one left free under a symbolic name (empty when unnamed).
Whether declared dimensions take a shape: the same rank, and every fixed dimension equal.