mocleiri / tensorflow-micropython-examples

A custom micropython firmware integrating tensorflow lite for microcontrollers and ulab to implement the tensorflow micro examples.
MIT License
170 stars 79 forks source link

Multi thread tflite #89

Open MATTYGILO opened 2 years ago

MATTYGILO commented 2 years ago

How do I use multiple threads for my tflite?

mocleiri commented 2 years ago

You can use the micropython thread class. But it depends on the port what CPU the thread actually runs on. For example ESP32 threads always run on the APP core (the micropython freertos task is pinned to the APP core). I think RP2040 threads are supposed to use both cores.