tensorflow / tflite-micro

Infrastructure to enable deployment of ML models to low-power resource-constrained embedded targets (including microcontrollers and digital signal processors).
Apache License 2.0
1.82k stars 799 forks source link

Calculate FLOPS for tflite format models #1509

Closed t1endat closed 1 year ago

t1endat commented 1 year ago

Hi, I'm trying to estimate FLOPS of given tflite models, but unfortunately, I can not find any available source code or references for this task. How can I do this? Thank for your reply.

t1endat commented 1 year ago

I'm also trying to create a small tool to do this task, based on available open-source projects such as https://github.com/sovrasov/flops-counter.pytorch, be I just wondering have any difference when calculating FLOPS in another architecture, like x86_64 and ARM.

ASabovic commented 1 year ago

Have you ever found a way how to do this @tiendatAI? I am also trying to calculate flops for person detection models (including the tinyML model), but still struggling to get the right results :)

github-actions[bot] commented 1 year ago

"This issue is being marked as stale due to inactivity. Remove label or comment to prevent closure in 5 days."

github-actions[bot] commented 1 year ago

"This issue is being closed because it has been marked as stale for 5 days with no further activity."