提交 8ff463b7 编写于 作者: T tianxin04

stop training by num_train_steps

上级 c54d5f93
...@@ -335,7 +335,7 @@ def train(args): ...@@ -335,7 +335,7 @@ def train(args):
lm_cost = [] lm_cost = []
acc = [] acc = []
time_begin = time.time() time_begin = time.time()
while True: while steps < args.num_train_steps:
try: try:
steps += nccl2_num_trainers steps += nccl2_num_trainers
skip_steps = args.skip_steps * nccl2_num_trainers skip_steps = args.skip_steps * nccl2_num_trainers
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册