Struct anira::ext::ProviderOptions#

struct ProviderOptions#

The “provider_options” kind, on the context config: the options an engine’s runtime takes for a provider, one set per backend, as string pairs in the runtime’s own vocabulary (ONNX Runtime’s execution provider option keys; an Engine’s own words). Each set is checked against its backend: the engine must consume the kind (the ONNX Runtime adapter, which reads the set at load into the execution provider’s options; an Engine whose consumed_kinds() lists “context:provider_options”, which reads it through EngineLoadInfo::option_keys()), else the set is refused as unconsumed naming the backend, and the provider must be one the engine serves here, else ANIRA_ERROR_NOT_SUPPORTED at anira_handler_create; a set for a backend no plan runs on is not an error. The options are part of the loaded model.

Public Members

std::vector<Set> sets#
struct Set#

Public Members

EngineKind engine = ANIRA_ENGINE_NONE#

ANIRA_ENGINE_CUSTOM with engine_id for a custom engine

std::string engine_id#
Provider provider = ANIRA_PROVIDER_NONE#

ANIRA_PROVIDER_CUSTOM with provider_id.

std::string provider_id#
std::vector<std::pair<std::string, std::string>> options#