提交 1b61021c 编写于 作者: M minqiyang

Polish code

上级 b75bd29c
......@@ -57,7 +57,7 @@ void CheckProgram(const ProgramDesc &program) {
} else {
if (visit.find(_INT(OpRole::kOptimize)) != visit.end()) {
LOG(ERROR)
<< "Cannot add backward operator %s after optimize operator.",
<< "Cannot add backward operator %s after optimize operator."
<< op->Type();
}
}
......@@ -82,8 +82,8 @@ void CheckProgram(const ProgramDesc &program) {
if (visit.find(_INT(OpRole::kOptimize)) != visit.end()) {
LOG(ERROR) << "Cannot add forward|loss operator %s after optimize "
"operator.",
<< op->Type();
"operator."
<< op->Type();
}
}
break;
......@@ -95,9 +95,8 @@ void CheckProgram(const ProgramDesc &program) {
op->Type());
} else {
if (visit.find(_INT(OpRole::kBackward)) == visit.end()) {
LOG(ERROR)
<< "Optimize operators %s must follow backward operator.",
<< op->Type();
LOG(ERROR) << "Optimize operators %s must follow backward operator."
<< op->Type();
}
}
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册