|
oveRTOS C API
Embedded RTOS framework — build system, configuration, and portable C API
|
Configuration for an ML inference session. More...
#include <infer.h>
Data Fields | |
| const void * | model_data |
| size_t | model_size |
| size_t | arena_size |
Configuration for an ML inference session.
model_data must point to a valid .tflite FlatBuffer. It is typically embedded as a const C array compiled into flash. arena_size controls how much memory is reserved for intermediate tensors; the actual requirement depends on the model.
model_data by pointer for the entire lifetime of the model session. The caller MUST ensure the buffer remains valid and immutable from the successful ove_model_init() / ove_model_create() call until ove_model_deinit() / ove_model_destroy(). Passing a stack-allocated or transient heap buffer will result in silent memory corruption during ove_model_invoke(). | const void* ove_model_config::model_data |
Pointer to .tflite FlatBuffer data (must outlive the session).
| size_t ove_model_config::model_size |
Size of model_data in bytes.
| size_t ove_model_config::arena_size |
Tensor arena size in bytes.