Add missing 'type' keyword to ArgumentParser add_argument (#12275)

Fixes #12210
This commit is contained in:
Vijay Vasudevan 2017-08-17 17:26:00 -07:00 committed by Andrew Harp
parent 6193771cd7
commit 565a9d3509

View File

@ -152,7 +152,7 @@ if __name__ == "__main__":
) )
parser.add_argument( parser.add_argument(
"--use_checkpoint_v2", "--use_checkpoint_v2",
"bool", type="bool",
nargs="?", nargs="?",
const=True, const=True,
default=False, default=False,