![]() |
Edge AI Add-on API 2.2.0
|
| nrf_axon_result_e nrf_axon_nn_populate_input_vector | ( | const nrf_axon_nn_compiled_model_s * | compiled_model, |
| const int8_t * | input_vector ) |
Copies model input from input_vector to the location in the interlayer buffer the model expects.
It is not recommended for users to invoke this function directly. The inference APIs handle copying the input vector in a safe manner that do not risk corrupting the current or future inferences.
This function can be called safely in synchronous mode if Axon is reserved by the user (exactly what the synchronous inference function does). This function cannot be called safely in asynchronous inference mode unless the caller knows a priori that no other inferences are occurring or will occur (ie, a simple one model system).
| [in] | compiled_model | model to copy input for. |
| [in] | input_vector | vector to copy |
| 0 | on success, or a negative error code. Note: errors due to multiple users of axon are not detected. |