未验证 提交 441beb50 编写于 作者: W wangguanzhong 提交者: GitHub

fix_evaldataset (#5972)

上级 22848d06
......@@ -339,7 +339,8 @@ class Trainer(object):
assert self.mode == 'train', "Model not in 'train' mode"
Init_mark = False
if validate:
self.cfg.EvalDataset = create("EvalDataset")()
self.cfg['EvalDataset'] = self.cfg.EvalDataset = create(
"EvalDataset")()
model = self.model
if self.cfg.get('fleet', False):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册