Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List operations of a TFLite model

I'm having trouble trying to list the operations of a TFLite model. I know operations can be listed given a frozen graph, but what about a TFLite .tflite model? Can operations be listed?

like image 427
John M. Avatar asked Sep 16 '25 16:09

John M.


1 Answers

You can get a list of all used Tensorflow Lite Operations with the visualization script.

wget -O tflite_visualize.py https://raw.githubusercontent.com/tensorflow/tensorflow/master/tensorflow/lite/tools/visualize.py

Assuming your model is saved in model.tflite create the html file using the downloaded script.

python tflite_visualize.py model.tflite model_visualization.html

Right in the section labled Ops.

Table of Tensorflow Lite Ops in html file

like image 139
Tom Stein Avatar answered Sep 19 '25 07:09

Tom Stein