Created
July 24, 2017 19:44
-
-
Save petewarden/750b3d8f5173315870bd2fb10174dfbd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bazel run tensorflow/tools/graph_transforms:transform_graph -- \ | |
--in_graph=tensorflow_inception_graph.pb \ | |
--out_graph=optimized_inception_graph.pb --inputs='Mul' \ | |
--outputs='softmax' --transforms='strip_unused_nodes(type=float, shape="1,299,299,3") fold_constants(ignore_errors=true) fold_batch_norms fold_old_batch_norms' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had to specify absolute paths to
*.pb
files:and got an error:
I checked that I used the same input file as the one in your repos.
I replaced
--outputs='softmax'
with-outputs='output2'
:but still got a warning:
Is this expected? In other words, is this what
fold_constants(ignore_errors=true)
is for?