Skip to content

Instantly share code, notes, and snippets.

@petewarden
Created July 24, 2017 19:47
Show Gist options
  • Save petewarden/e1af540ceebb10faabfb69d65148df0f to your computer and use it in GitHub Desktop.
Save petewarden/e1af540ceebb10faabfb69d65148df0f to your computer and use it in GitHub Desktop.
bazel build tensorflow/tools/graph_transforms:transform_graph \
&& blaze-bin/tensorflow/tools/graph_transforms/transform_graph \
--in_graph=/tmp/tensorflow_inception_optimized.pb \
--out_graph=/tmp/tensorflow_inception_quantized.pb \
--inputs='Mul:0' \
--outputs='softmax:0' \
--transforms='quantize_weights'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment