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

Package0.1.0.0AIFFI

onnxruntime

ONNX Runtime bindings: sessions and tensors under brackets

Modules

6 modules
  • OnnxRuntime40ONNX Runtime from Haskell: an environment, sessions on models with
  • OnnxRuntime.Element4The element types a tensor holds, shared by the runtime and Haskell.
  • OnnxRuntime.Error4What can go wrong between a program and ONNX Runtime: the runtime's
  • OnnxRuntime.Session17The runtime's environment, session options and sessions, each held
  • OnnxRuntime.Shape7Tensor shapes in row-major order, and the dimensions a model declares.
  • OnnxRuntime.Tensor8Tensors as storable vectors in row-major order with the shape they

Description

Run ONNX models through Microsoft's ONNX Runtime from Haskell. An environment, session options (thread counts, graph optimisation, the CPU by default with CUDA or ROCm on request), sessions opened from a file or from bytes, and tensors made from storable vectors with their shapes and element types, run by named inputs and outputs. Every handle is held by a bracket, and every failure is a typed OrtError. The runtime's C API is reached through a small C file that calls its function table; the library links the system's onnxruntime.

Depends on

5 packages

Used by in this set · 0

Nothing in this set depends on it.