Do you have a graph_def file for the models ?
pidugusundeep opened this issue · 4 comments
pidugusundeep commented
I am trying out https://github.com/IntelAI/tools/tree/master/tensorflow_quantization#steps-for-fp32-optimized-frozen-graph and I would like to know if you have any .pb
or .pbtxt
files along with the checkpoint files which you provided in the ./models
tomhosking commented
I don't have them, but you have the code that builds the graph so you should be able to write the graph to disk.
pidugusundeep commented
@tomhosking may I know where exactly it is?
tomhosking commented
The model is built here, and you can then access the graph with self.model.graph
, eg
tf.train.write_graph(self.model.graph, path_to_model_pb,
'saved_model.pb', as_text=False)
(see this stackoverflow post)
pidugusundeep commented
@tomhosking Thanks it's working!