HORIZON HASKELLDocslts/ghc-10.0.x8c2f8e82026-10-19Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8c2f8e8 · 2026-10-19

Moduleonnxruntime-0.1.0.0GHC2024

OnnxRuntime.Shape

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

  • 2 types
  • 5 values
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.