未验证 提交 b63894b5 编写于 作者: W wawltor 提交者: GitHub

fix the pure fp16 of argument (#5236)

fix the pure fp16 of argument (#5236)
上级 5d8ce26e
......@@ -136,6 +136,11 @@ def parse_args():
type=float,
default=1.0,
help="The value of scale_loss for fp16.")
parser.add_argument(
"--use_pure_fp16",
type=distutils.util.strtobool,
default=False,
help="Whether to use pure fp16 training.")
parser.add_argument(
"--select_device",
type=str,
......@@ -146,8 +151,7 @@ def parse_args():
type=int,
default=1,
help="Number of merge steps before gradient update."
"global_batch_size = gradient_merge_steps * batch_size."
)
"global_batch_size = gradient_merge_steps * batch_size.")
args = parser.parse_args()
return args
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册