Skip to content

Instantly share code, notes, and snippets.

@alreadytaikeune
Created August 13, 2018 13:16
Show Gist options
  • Save alreadytaikeune/85a8ccf38eb2d4f233b385cffc195f92 to your computer and use it in GitHub Desktop.
Save alreadytaikeune/85a8ccf38eb2d4f233b385cffc195f92 to your computer and use it in GitHub Desktop.
bazel-bin/tensorflow/tools/graph_transforms/transform_graph \
--in_graph=in_graph.pb \
--out_graph=out_graph.pb \
--inputs='input1,input2' \
--outputs='output1,output2' \
--transforms='
strip_unused_nodes
remove_nodes(op=Identity, op=CheckNumerics)
fold_constants(ignore_errors=true)
remove_attribute(attribute_name=_class)
fold_batch_norms
fold_old_batch_norms
quantize_weights
obfuscate_name
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment