API Reference Manual  1.45.0
odp_ml_data_t Struct Reference

Model input / output data for a model inference run. More...

#include <ml_types.h>

Collaboration diagram for odp_ml_data_t:
[legend]

Data Fields

uint32_t num_input_seg
 Number of input data segments. More...
 
uint32_t num_output_seg
 Number of output data segments. More...
 
odp_ml_data_seg_tinput_seg
 Model input data segments. More...
 
odp_ml_data_seg_toutput_seg
 Model output data segments. More...
 

Detailed Description

Model input / output data for a model inference run.

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

Field Documentation

◆ num_input_seg

uint32_t odp_ml_data_t::num_input_seg

Number of input data segments.

Number of elements in 'input_seg' array (at least one per input).

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

◆ num_output_seg

uint32_t odp_ml_data_t::num_output_seg

Number of output data segments.

Number of elements in 'output_seg' array (at least one per output).

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

◆ input_seg

odp_ml_data_seg_t* odp_ml_data_t::input_seg

Model input data segments.

Points to an array of data segment descriptors for model input data. Each segment (odp_ml_data_seg_t) specifies data for one input only. Multiple consecutive segments may be used to specify data for the same input. Sum of those segment sizes must match data size of the input. Inputs are defined in the same order which odp_ml_model_input_info() reports those.

Input data segments may overlap in memory.

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

◆ output_seg

odp_ml_data_seg_t* odp_ml_data_t::output_seg

Model output data segments.

Points to an array of data segment descriptors for model output data. Each segment (odp_ml_data_seg_t) specifies data buffer space for one output only. Multiple consecutive segments may be used to specify buffer space for the same output. Sum of those segment sizes must match data size of the output. Outputs are defined in the same order which odp_ml_model_output_info() reports those.

An output data segment must not overlap with any other (input or output) segment in memory.

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


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