跳至主要内容

InferenceTerminalPolicy Struct

Where the inference pipeline should terminate. More...

Declaration​

struct simaai::neat::Model::InferenceTerminalPolicy { ... }

Included Headers​

#include <Model.h>

Public Member Attributes Index​

boolmla_only = false

If true, terminate at the MLA stage; skip postprocess entirely. More...

std::optional< std::size_t >last_stage_index

Stop after this stage index (0-based, inclusive). More...

std::optional< std::string >last_stage_name

Stop after the named stage (matches MPK contract stage name). More...

std::optional< std::string >last_plugin_id

Stop after the first stage using this plugin ID. More...

std::optional< std::string >last_processor

Stop after the first stage running on this processor (CVU/MLA/APU). More...

Description​

Where the inference pipeline should terminate.

Most pipelines run preprocess → MLA → postprocess. This policy lets advanced users stop earlier — for example, to inspect the raw MLA output before postprocessing, or to chain two models where the first one only needs to run through the MLA stage.

Definition at line 201 of file Model.h.

Public Member Attributes​

last_plugin_id​

std::optional<std::string> simaai::neat::Model::InferenceTerminalPolicy::last_plugin_id

Stop after the first stage using this plugin ID.

Definition at line 207 of file Model.h.

last_processor​

std::optional<std::string> simaai::neat::Model::InferenceTerminalPolicy::last_processor

Stop after the first stage running on this processor (CVU/MLA/APU).

Definition at line 209 of file Model.h.

last_stage_index​

std::optional<std::size_t> simaai::neat::Model::InferenceTerminalPolicy::last_stage_index

Stop after this stage index (0-based, inclusive).

Definition at line 204 of file Model.h.

last_stage_name​

std::optional<std::string> simaai::neat::Model::InferenceTerminalPolicy::last_stage_name

Stop after the named stage (matches MPK contract stage name).

Definition at line 206 of file Model.h.

mla_only​

bool simaai::neat::Model::InferenceTerminalPolicy::mla_only = false

If true, terminate at the MLA stage; skip postprocess entirely.

Definition at line 202 of file Model.h.


The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.