espressif / esp-tflite-micro

TensorFlow Lite Micro for Espressif Chipsets
Apache License 2.0
395 stars 85 forks source link

list of operations (TFMIC-6) #68

Open 99Pp opened 1 year ago

99Pp commented 1 year ago

Given a tflite model , how do I know what operations to perform on it to get inference . I remember there used to be a function GetSubgraphs . Is there a way available now to find the operation list on the micro ? , there are ways available to find on host machine .

vikramdattu commented 1 year ago

Hello @99Pp you may take multiple approaches for this.

  1. Use a script from tflite-micro to extract the OPs into c code format. Please find the same here.
  2. You may visualise the model with some tool, e.g., netron.app to find out the OPs.
  3. Trial and error: Keep adding the OPs for which the code throws an error.

Method 2 IMO, needs no special tools or setup. Please do explore all the methods.