diff options
Diffstat (limited to 'tensorflow/contrib/session_bundle/example/export_half_plus_two.py')
-rw-r--r-- | tensorflow/contrib/session_bundle/example/export_half_plus_two.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tensorflow/contrib/session_bundle/example/export_half_plus_two.py b/tensorflow/contrib/session_bundle/example/export_half_plus_two.py index 4a56509e59..83e91d390f 100644 --- a/tensorflow/contrib/session_bundle/example/export_half_plus_two.py +++ b/tensorflow/contrib/session_bundle/example/export_half_plus_two.py @@ -152,11 +152,10 @@ if __name__ == "__main__": ) parser.add_argument( "--use_checkpoint_v2", - "bool", + type="bool", nargs="?", const=True, default=False, - help="If true, write v2 checkpoint files." - ) + help="If true, write v2 checkpoint files.") FLAGS, unparsed = parser.parse_known_args() tf.app.run(main=main, argv=[sys.argv[0]] + unparsed) |