|import tensorflow as tf|
|from tensorflow.python.platform import gfile|
|with tf.Session() as sess:|
|with gfile.FastGFile(model_filename, 'rb') as f:|
|graph_def = tf.GraphDef()|
|g_in = tf.import_graph_def(graph_def)|
|train_writer = tf.summary.FileWriter(LOGDIR)|
Thank you very much for this gist, it was just what i needed.
Also it was necessary for me to change LOGDIR to
I have tried this code but this error message shown in Jupyter, any suggestion?
DecodeError Traceback (most recent call last)
DecodeError: Error parsing message
While adding my frozen.pb file to it, it gives me an error
and if run it through another code which is:
import tensorflow as tf
from tensorflow.core.protobuf import saved_model_pb2
with tf.Session() as sess:
and gave me error:
google.protobuf.message.DecodeError: Error parsing message
any solution for this..??
i converted to .pb file from checkpoint file using tensorflow frozen_python file.