API Reference Manual
1.47.0
|
Model information. More...
#include <ml_types.h>
Data Fields | |
char | name [ODP_ML_MODEL_NAME_LEN] |
Model name. | |
uint64_t | model_version |
Model version number. More... | |
uint64_t | interface_version |
Model interface version number. More... | |
uint32_t | index |
Model index assigned by the implementation. | |
uint32_t | num_inputs |
Number of model inputs. | |
uint32_t | num_outputs |
Number of model outputs. | |
union { | |
struct { | |
uint32_t input_quant_info: 1 | |
Input quantization information provision. More... | |
uint32_t output_quant_info: 1 | |
Output quantization information provision. More... | |
} | |
Auxiliary bit fields. | |
uint32_t all | |
All bits of the bit field structure. More... | |
} | aux |
Auxiliary information regarding the model and its inputs / outputs. | |
Model information.
Definition at line 585 of file api/spec/ml_types.h.
uint64_t odp_ml_model_info_t::model_version |
Model version number.
Version number of the model binary. The number changes when the model is modified in any way.
Definition at line 595 of file api/spec/ml_types.h.
uint64_t odp_ml_model_info_t::interface_version |
Model interface version number.
The model interface version number changes only when model input or output data format is modified. Data formats are the same for two model versions that have the same interface version number.
Definition at line 604 of file api/spec/ml_types.h.
uint32_t odp_ml_model_info_t::input_quant_info |
Input quantization information provision.
When set to 1, model input information provides quantization information. If set, each input needs to be separately checked for information validity (see odp_ml_input_info_t::quant_info).
When set to 0, no quantization information is provided for inputs.
Definition at line 628 of file api/spec/ml_types.h.
uint32_t odp_ml_model_info_t::output_quant_info |
Output quantization information provision.
When set to 1, model output information provides quantization information. If set, each output needs to be separately checked for information validity (see odp_ml_output_info_t::quant_info).
When set to 0, no quantization information is provided for outputs.
Definition at line 639 of file api/spec/ml_types.h.
uint32_t odp_ml_model_info_t::all |
All bits of the bit field structure.
This field can be used for bitwise operations over the entire structure.
Definition at line 648 of file api/spec/ml_types.h.