PaddlePaddle / Paddle

PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署)
http://www.paddlepaddle.org/
Apache License 2.0
21.63k stars 5.44k forks source link

pass_state return ref of pass_state_ #63874

Closed zhink closed 1 week ago

zhink commented 1 week ago

PR Category

Inference

PR Types

Improvements

Description

pcard-71500 When inheriting PatternRewritePass, you need to obtain the original passstate to support the transfer of information between Passes. 继承PatternRewritePass实现传递Analysis信息时,DrrPatternBase子类构造时,存在pass_state_还未初始化。其初始化在InitializePatterns时,落后于DrrPatternBase子类构造,但早于AddPostProcess。故增加返回std::optional\<pir::detail::PassExecutionState>&

paddle-bot[bot] commented 1 week ago

你的PR提交成功,感谢你对开源项目的贡献! 请关注后续CI自动化测试结果,详情请参考Paddle-CI手册。 Your PR has been submitted. Thanks for your contribution! Please wait for the result of CI firstly. See Paddle CI Manual for details.