View .pb file of Tensorflow in Tensorboard as a Graph

Tnsorboard to view .pb file

one of when i solving deep learning problem using tensorflow ,i was using pretrained model in .pb format.

i had to visualize that in order to get the layers inside the structure …

i searched lot on internet .. and i get couple of lines of code…

but,i didnt get the actual code ,how to correctly visualize the pretrained .pb file..

hence writing the complete guide here:

Let’s Start…!!!

  1. you must have .pb file…

if not,then download it..(hahahaha)

2.Open google colab…

and paste the following code

where,just do 1 modification in above code..

instead of “model_filename” ,put the path of your .pb file

for LOGDIR ,we simply can keep “/content” as our default path

if you are getting … DecodeError: Error parsing message

then paste below code we have to visualize it..

open colab and paste the below code:

The result i get is:

Github link is:

Blog By:

Akshay Bhor: Deep learning Engineer

an Data Scientist




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Build and deploy a Flask ML Web Application

Reducing latency in tensorflow lite

Quick steps to do Data Augmentation for your model

Tensorflow 2.0 Eager Execution Deep Dive

Data Preprocessing: where it all begins.

Deep Learning

Build a Deep Learning dataset (Part 2)

Deep Lake — an architectural blueprint for managing Deep Learning data at scale — part I

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Akshay Bhor Data Scientist

Akshay Bhor Data Scientist

More from Medium

Randomized Optimization Algorithm Comparison

Key takeaways from building multiple machine learning models

ELBO Derivation for VAE (variational autoencoder)

Cost Function and Performance Metrics in Deep Learning