HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduleonnxruntime-0.1.0.0GHC2024

OnnxRuntime.Shape

Tensor shapes in row-major order, and the dimensions a model declares.

Synopsis
newtypenewtype Shape

A tensor's dimensions, outermost first; the empty shape is a scalar.

Constructors

Instances3Eq, Ord, Show
  • Eq ShapeDefined in onnxruntime-0.1.0.0 · OnnxRuntime.Shape
  • Ord ShapeDefined in onnxruntime-0.1.0.0 · OnnxRuntime.Shape
  • Show ShapeDefined in onnxruntime-0.1.0.0 · OnnxRuntime.Shape
valuestrides :: Shape -> [Int]

Row-major strides: how far apart neighbours along each dimension lie.

datadata Dim

A dimension a model declares: a fixed size, or one left free under a symbolic name (empty when unnamed).

Constructors

Instances2Eq, Show
  • Eq DimDefined in onnxruntime-0.1.0.0 · OnnxRuntime.Shape
  • Show DimDefined in onnxruntime-0.1.0.0 · OnnxRuntime.Shape
valueaccepts :: [Dim] -> Shape -> Bool

Whether declared dimensions take a shape: the same rank, and every fixed dimension equal.