oveRTOS C API
Embedded RTOS framework — build system, configuration, and portable C API
Loading...
Searching...
No Matches
Data Fields
ove_model_config Struct Reference

Configuration for an ML inference session. More...

#include <infer.h>

Data Fields

const void * model_data
 
size_t model_size
 
size_t arena_size
 

Detailed Description

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.

Warning
The interpreter holds 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().

Field Documentation

◆ model_data

const void* ove_model_config::model_data

Pointer to .tflite FlatBuffer data (must outlive the session).

◆ model_size

size_t ove_model_config::model_size

Size of model_data in bytes.

◆ arena_size

size_t ove_model_config::arena_size

Tensor arena size in bytes.


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