Skip to main content

ClikaRT::runtime::PhaseContext

struct

Header: ClikaRT/runtime/context.h

Context for a RunOnce phase (Model::Phase_RunOnce). Read inputs, write outputs; state is the session's state (null for a stateless model). All pointers are valid only for the duration of the call.

Data members

state

ModelState* state = nullptr

session state (null if stateless)

Declared in ClikaRT/runtime/context.h, line 33

inputs

const NamedTensors* inputs = nullptr

request inputs (read-only)

Declared in ClikaRT/runtime/context.h, line 34

outputs

NamedTensors* outputs = nullptr

write the phase's outputs here

Declared in ClikaRT/runtime/context.h, line 35

stream

Stream stream

the stream the phase runs on

Declared in ClikaRT/runtime/context.h, line 36