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>&
你的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.
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>&