Work with Frozen Graph(Graphdef) and SavedModel format across TF1 and TF2

A few handy scripts to your rescue, painless examing TF models irrespective of TensorFlow versions

Posted by Dong Meng on August 18, 2020

Introduction

TensorFlow has gone through some major changes between TF1 and TF2. TensorFlow has such a huge community that it is inevitable that you will at some points trying to exam a TF1 Frozen Graph within your TF2 environment or try to peek into some TF2 models with your prefered TF1 environment. I have create a few scripts that is handy for you to inspect both Frozen Graph and SavedModel format regardless of what TF version you use.