Closed ashokbugude closed 6 years ago
@ashokbugude Please use the command as the author provided:
bazel build tensorflow/python/tools:freeze_graph && \
bazel-bin/tensorflow/python/tools/freeze_graph \
--input_graph=graph.pb \
--input_checkpoint=model.ckpt \
--output_graph=/tmp/frozen_graph.pb --output_node_names=softmax
Brief description:
1) build the freeze_graph tool which is included in tensorflow source code. 2) feed in graph(graph.pb) and checkpoint(model.ckpt). And address the output graph path (/tmp/frozen_graph.pb) and remember to give the name of output_node_name(softmax)
I wanted it in c++ instead of python . Anyway Thanks
Can I please know how to freeze graph from .pb and .ckpt files in c++
I am able to do training in c++ and generate .ckpt file , I would like to prediction now for which I needed a freeze graph Please help