未验证 提交 3b75ea72 编写于 作者: L liu zhengxi 提交者: GitHub

fix single (#5162)

上级 1727ebff
......@@ -119,10 +119,12 @@ def do_train(args):
batch_id = 0
batch_start = time.time()
pass_start_time = batch_start
for data in train_loader():
for data in train_loader:
# NOTE: used for benchmark and use None as default.
if args.max_iter and step_idx == args.max_iter:
return
if trainer_count == 1:
data = [data]
train_reader_cost = time.time() - batch_start
outs = exe.run(compiled_train_program,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册