未验证 提交 c20b11ba 编写于 作者: Z Zeng Jinle 提交者: GitHub

simplify op_info.h, test=develop (#20195)

上级 fa82a015
......@@ -79,13 +79,9 @@ struct OpInfo {
}
// some op has no grad_op_maker, add check before use GradOpMaker()
bool HasGradOpMaker() const {
return grad_op_maker_ != nullptr ? true : false;
}
bool HasGradOpMaker() const { return grad_op_maker_ != nullptr; }
bool HasInferInplace() const {
return infer_inplace_ != nullptr ? true : false;
}
bool HasInferInplace() const { return infer_inplace_ != nullptr; }
const OpAttrChecker* Checker() const { return checker_; }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册