The typical workflow for using the NPU involves:
- One-time Initialization: Call
TI_NPU_init() during system startup.
- Input Preparation: Create and
populate the input structure with pointers to your data.
- Output Allocation: Create the
output structure with pointers to variables that receive results.
- Model Execution: Call
tvmgen_default_run() with the input and output structures.
- Completion Monitoring: Monitor
the tvmgen_default_finished flag to determine when processing is complete.
- Result Utilization: Once the
completion flag is set, the output data is ready for use in your application.