提交 37867372 编写于 作者: C chengduozh

remove distributed_batch_reader

上级 9e92cb5d
...@@ -279,10 +279,10 @@ def main(args): ...@@ -279,10 +279,10 @@ def main(args):
exec_strategy=exec_strategy, exec_strategy=exec_strategy,
build_strategy = build_strategy, build_strategy = build_strategy,
main_program=train_program) main_program=train_program)
num_trainers = int(os.environ.get('PADDLE_TRAINERS_NUM', 1)) # num_trainers = int(os.environ.get('PADDLE_TRAINERS_NUM', 1))
if num_trainers > 1: # if num_trainers > 1:
train_data_generator = fluid.contrib.reader.distributed_batch_reader( # train_data_generator = fluid.contrib.reader.distributed_batch_reader(
train_data_generator) # train_data_generator)
train_pyreader.decorate_tensor_provider(train_data_generator) train_pyreader.decorate_tensor_provider(train_data_generator)
else: else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册