I would like to know how we can see/load/read a .pb file in Google Colab?

Thank you.


1 Answer 1


I think this snippet will help you.

import tensorflow as tf
model_path = "/PATH/TO/YOUR/FILE.pb"
model = tf.saved_model.load(model_path)



Not the answer you're looking for? Browse other questions tagged or ask your own question.