Struct anira_plan_ext#

struct anira_plan_ext#

One extension a plan consumes: where it sits (the host and the tensor or entry it is attached to), its kind and the processor or adapter that takes it (“entry ->

libtorch”). Tier 2, struct_size first; enumerated by anira_plan_report_exts at the caller’s stride. The strings are valid while the report is.

Public Members

uint32_t struct_size#

sizeof(anira_plan_ext) of the caller’s header.

uint32_t index#

The row’s index within the plan’s extension list.

const char *host#

The host of the slot: “tensor_spec ‘name’”, “model [i]”, “model_config” or “contract”.

const char *kind#

The extension kind (its registered reverse-URI name).

const char *consumer#

Who consumes it: “processor” for the pipeline’s processor, else the engine’s word for a built-in engine’s adapter (“onnxruntime”, “executorch”, “libtorch”) or the id of a custom engine.