-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【CINN】refactor ir_visitor #55171
【CINN】refactor ir_visitor #55171
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
paddle/cinn/optim/ir_copy.cc
Outdated
return op__::Make(v); \ | ||
#define OP_UNARY_HANDLE(op__) \ | ||
Expr Visit(const op__* op) override { \ | ||
auto v = IRVisitorRequireReImplVisitor::Visit(&op->v()); \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are 2 Visitors in name?
Using IrVisitorRequireReImpl
or IrRequireReImplVisitor
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
paddle/cinn/pybind/ir.cc
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is there an empty file? Should we delete it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR delete middle ir_visitor class and thus we can avoid middle virtual function call and codes look more clean pcard-72718
PR types
Performance optimization
PR changes
Others
Description
This PR delete middle ir_visitor class and thus we can avoid middle virtual function call and codes look more clean
pcard-72718