未验证 提交 0cb121cf 编写于 作者: 1 123malin 提交者: GitHub

test=develop, bug fix for trainer_factory (#22751)

上级 b813c948
......@@ -43,7 +43,7 @@ class TrainerFactory(object):
def _create_trainer(self, opt_info=None):
trainer = None
device_worker = None
if opt_info == None:
if not opt_info:
# default is MultiTrainer + Hogwild
trainer = MultiTrainer()
device_worker = Hogwild()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册