Enum anira_role#
-
enum anira_role#
How a tensor spec is fed and drained.
Values:
-
enumerator ANIRA_ROLE_STREAMED#
Has a Time axis consumed window-wise (inputs and outputs).
-
enumerator ANIRA_ROLE_BUFFER#
The whole submitted buffer is one model tensor, no Time axis (frames, images): a per-job payload, which arrives with the Async contract. The spec is valid in a model config and a model file; anira_handler_prepare refuses it under a Hard contract with ANIRA_ERROR_NOT_SUPPORTED (a persistent side input under a Hard contract is ANIRA_ROLE_STATIC).
-
enumerator ANIRA_ROLE_STATIC#
No time semantics: conditioning in, scalar or embedding out; one value per job.
-
enumerator ANIRA_ROLE_STATE#
Declared state: one half of a pair of a state input and a state output with equal dtype and shape, paired by anira_tensor_spec_set_state_source on the input. anira keeps the state in the handler, on the port of the state input, in the spec’s shape and dtype (the store of a Static tensor with another life), feeds it into the model input ahead of the processor’s before_inference and captures the model output into it behind the processor’s after_inference, on the inference thread; the value is zeroed at create and at prepare and re-initialised by anira_handler_reset. A State spec may stand anywhere in its list and has a slot like every other tensor, its position in the model config’s list, but no Hard entry carries it: a single form that names its slot is ANIRA_ERROR_INVALID_ARGUMENT, and its position in an array of a _multi form must be the empty tensor (a rank of 1 or more with an extent of 0). A processor sees it at the same slot. No Time axis, window, time ratio or latency; the value takes the spec’s dtype, like every model tensor.
-
enumerator ANIRA_ROLE_FORCE32#
-
enumerator ANIRA_ROLE_STREAMED#