| #ifndef SW_VEC_IREE_SAMPLES_UTIL_H_ |
| #define SW_VEC_IREE_SAMPLES_UTIL_H_ |
| |
| #include "iree/base/api.h" |
| #include "iree/hal/api.h" |
| #include "iree/modules/hal/module.h" |
| #include "iree/vm/api.h" |
| #include "iree/vm/bytecode_module.h" |
| |
| #define MAX_MODEL_INPUT_DIM 4 |
| #define MAX_MODEL_OUTPUTS 12 |
| |
| typedef struct { |
| int num_input_dim; |
| iree_hal_dim_t input_shape[MAX_MODEL_INPUT_DIM]; |
| int input_length; |
| int input_size_bytes; |
| int num_output; |
| int output_length[MAX_MODEL_OUTPUTS]; |
| int output_size_bytes; |
| enum iree_hal_element_types_t hal_element_type; |
| char model_name[]; |
| } MlModel; |
| |
| #endif // SW_VEC_IREE_SAMPLES_UTIL_H_ |