You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
你的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.
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes a bug where the insertion point was not restored after running a composite operator in CINN, which caused subsequent cases to run on an incorrect static program. Key changes include adding an explicit paddle.static.program_guard to ensure the insertion point is correctly reset and reformatting argument lists in paddle.strided_slice for improved readability.
Files not reviewed (1)
paddle/fluid/pybind/pybind.cc: Language not supported
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Category
Execute Infrastructure
PR Types
Bug fixes
Description
组合算子结束后恢复原来的 insertion point,避免副作用扩散到后续 case
该问题在 CINN 在动转静开默认后
test_slice
暴露,前一个动转静 case 因为跑了组合算子,导致后面没用program_guard
的纯静态图插入点错误,并不是default_main_program
,因此跑(exe.run
)了个寂寞(空 program)通过删 backend 相关代码定位到 decomp 问题,加了插入点恢复逻辑
由于静态图单测实际上加
program_guard
会更安全些,因此也加了一下Related links
CINN 切默认系列 PR
build_strategy.build_cinn_pass
and replace it withbackend
option #71815FLAGS_use_cinn
viaos.getenv
#71817np.testing
module to get better error message and tolerance settings intest_ifelse
#71951