jihandong commented on PR #2747:
URL: https://github.com/apache/nuttx-apps/pull/2747#issuecomment-2419441474

   > Thank you @jihandong amazing work!! :-)
   > 
   > Would it be possible to add Documentation and example / test applications 
in a separate PR in a free moment? :-)
   
   I'd like to. But compared to the background knowledge of AI, tflite-micro is 
very esay to use and there are already many good documents. Share some steps 
here:
   1. First u need to prepare your own tflite model file.
   2. Register needed operators by `tflite::MicroMutableOpResolver<T>::Add*`.
   3. Prepare a piece of memory as memory pool(tflite-micro calls it "arena") 
for intermediate calculations.
   4. Initialize a `MicroIntepreter`, every instance represents a parsed model.
   5. Finally, ou can get the input and output addresses(from the memory pool) 
through `interpreter::GetInput` and `interpreter::GetOutput`, 
`interpreter::Invoke` would do once inference.
   
   Hope these steps help u. :)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to