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

Polish code

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