-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
[IR&Pass] Add DCE Pass for new ir. #54935
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
@@ -40,6 +40,7 @@ endif() | |||
add_subdirectory(core) | |||
add_subdirectory(pass) | |||
add_subdirectory(pattern_rewrite) | |||
add_subdirectory(transforms) |
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.
transforms目录下再细分为各方向pass目录?
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.
可以考虑这么组织
paddle/ir/transforms/CMakeLists.txt
Outdated
file(GLOB PATTERN_SRCS "*.cc") | ||
|
||
ir_library(ir_builtin_transforms SRCS ${PATTERN_SRCS} DEPS ir_core | ||
ir_pattern_rewrite) |
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.
DEPS 少了个 ir_pass ?
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
namespace ir { | ||
class Pass; | ||
|
||
IR_API std::unique_ptr<Pass> CreateDCEPass(); |
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.
这种是不是命名为CreateDcePass更合适啊?
见google style命名约定
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.
收到,下个pr修改
DCE pass的单测单独开个文件夹文件?之后加的每个pass不能都放这一个里... |
嗯,公用Pass单独放,单测(构造起来挺麻烦的)单独放 |
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 overall
PR types
Others
PR changes
Others
Description
Pcard-71500
Add a naive implementation DCE Pass just for ResNet50 model test.