Skip to content

Instantly share code, notes, and snippets.

@petewarden
Created July 24, 2017 19:42
Show Gist options
  • Save petewarden/bb0535e6f4748a49c1dbad4cfcc87f2c to your computer and use it in GitHub Desktop.
Save petewarden/bb0535e6f4748a49c1dbad4cfcc87f2c to your computer and use it in GitHub Desktop.
bazel build tensorflow/python/tools:freeze_graph
bazel-bin/tensorflow/python/tools/freeze_graph \
--input_graph=/tmp/model/my_graph.pb \
--input_checkpoint=/tmp/model/model.ckpt-1000 \
--output_graph=/tmp/frozen_graph.pb \
--input_node_names=input_node \
--output_node_names=output_node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment