API Reference Manual  1.45.0
odp_ml_config_t Struct Reference

Machine learning configuration parameters. More...

#include <ml_types.h>

Data Fields

uint32_t max_models_created
 Maximum number of models. More...
 
uint32_t max_models_loaded
 Maximum number of models loaded. More...
 
uint64_t max_model_size
 Maximum model binary size in bytes. More...
 
odp_ml_compl_mode_t load_mode_mask
 Load / unload completion modes. More...
 
odp_ml_compl_mode_t run_mode_mask
 Run completion modes. More...
 

Detailed Description

Machine learning configuration parameters.

Definition at line 331 of file api/spec/ml_types.h.

Field Documentation

◆ max_models_created

uint32_t odp_ml_config_t::max_models_created

Maximum number of models.

Application may create and use this many models simultaneously. The default value is 1.

Definition at line 337 of file api/spec/ml_types.h.

◆ max_models_loaded

uint32_t odp_ml_config_t::max_models_loaded

Maximum number of models loaded.

Maximum number of models that the application will keep loaded simultaneously. The default value is 1.

Definition at line 345 of file api/spec/ml_types.h.

◆ max_model_size

uint64_t odp_ml_config_t::max_model_size

Maximum model binary size in bytes.

All model binaries application will pass to odp_ml_model_create() are this size or smaller.

Definition at line 353 of file api/spec/ml_types.h.

◆ load_mode_mask

odp_ml_compl_mode_t odp_ml_config_t::load_mode_mask

Load / unload completion modes.

Mask of completion modes that application will use with model load/unload operations. Multiple modes may be selected, but it is implementation specific if some combinations are not supported. In case of an unsupported combination odp_ml_config() returns failure. Check odp_ml_capability_t.load for supported modes. The default value is 0.

Definition at line 363 of file api/spec/ml_types.h.

◆ run_mode_mask

odp_ml_compl_mode_t odp_ml_config_t::run_mode_mask

Run completion modes.

Mask of completion modes that application will use with model run operations. Multiple modes may be selected, but it is implementation specific if some combinations are not supported. In case of an unsupported combination odp_ml_config() returns failure. Check odp_ml_capability_t.run for supported modes. The default value is 0.

Definition at line 373 of file api/spec/ml_types.h.


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