Skip to main content

Session

Session is the runtime entry point. It owns pipeline assembly, validation, and build/run orchestration.

Think of Session as the place where you define pipeline structure once, then execute it many times.

Core responsibilities

  • Add nodes and groups with add(...).
  • Inspect pipeline text with describe() and to_gst().
  • Validate contracts before runtime with validate(...).
  • Build a Run object via build(...).
  • Run inference with run(...).

Reference:

Session + Run pattern

simaai::neat::Session session;
session.add(simaai::neat::nodes::Input());
session.add(simaai::neat::nodes::Output());

auto run = session.build(input_tensor, simaai::neat::RunMode::Sync);
auto out = run.push_and_pull(input_tensor, 1000);

See also

Tutorials