提交 23a674c9 编写于 作者: T tensor-tang

switch the flag

上级 defd7ec6
......@@ -137,8 +137,8 @@ void Trainer::init(const std::shared_ptr<TrainerConfigHelper>& config,
}
}
if (FLAGS_trainer_count > 1) {
CHECK(!FLAGS_use_mkldnn) << "MKLDNN only need 1 trainer";
if (FLAGS_use_mkldnn) {
CHECK_EQ(FLAGS_trainer_count, 1UL) << "MKLDNN only need 1 trainer";
}
if (testing) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册