Skip to main content

ClikaRT::runtime::ContainedModel

struct

Header: ClikaRT/runtime/model.h

The runtime drives a Model through these contained entry points. You never build this; Executor::create / Pipeline::create build it from your Model (see detail::contain), wrapping each override in caller-side throw containment so a thrown ClikaRT::Error becomes a failure Result that the engine fails the session with; it never unwinds into the engine. (Same mechanism as http's detail::contain and the RequestCallbacks forwarder: the catch is compiled in your translation unit, only data crosses the boundary.)

Data members​

schema​

ModelSchema schema

The model's I/O contract (copied out of schema()).

Declared in ClikaRT/runtime/model.h, line 113

phases​

std::vector<PhaseSpec> phases

The model's phases, in order.

Declared in ClikaRT/runtime/model.h, line 115

make_state​

std::function<Result<ModelState *>(Stream)> make_state

Declared in ClikaRT/runtime/model.h, line 116

Phase_RunOnce​

std::function<Result<void>(const PhaseSpec &, PhaseContext &)> Phase_RunOnce

Declared in ClikaRT/runtime/model.h, line 117

Phase_Iterate​

std::function<Result<StepBatchOut>(const PhaseSpec &, StepContext &)> Phase_Iterate

Declared in ClikaRT/runtime/model.h, line 118

evict​

std::function<void(ModelState &)> evict

Declared in ClikaRT/runtime/model.h, line 119

capacity_units​

std::function<std::int64_t()> capacity_units

Declared in ClikaRT/runtime/model.h, line 120

project_units​

std::function<UnitProjection(const NamedTensors &)> project_units

Declared in ClikaRT/runtime/model.h, line 121