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.Session

The runtime's environment, session options and sessions, each held for the length of an action and released however it ends, and runs of a session on named tensors. Every failure is thrown as an OrtError.

  • 8 types
  • 9 values
newtypenewtype Environment
#

The runtime's process-wide state, which every session runs in.

datadata GraphOptimisation
#

How far the runtime rewrites a graph before running it.

Instances5Bounded, Enum, Eq, Ord, Show
datadata Session
#

An open model with what it declares. It is valid only inside the action it was opened for.

valuerun :: Session -> [(Text, SomeTensor)] -> [Text] -> IO [SomeTensor]
#

Run a session on named inputs for the named outputs, in that order. Each input is checked against what the model declares first.