Skip to content

[CINN] Robustify min/max type matching#74316

Merged
lshpku merged 1 commit intoPaddlePaddle:developfrom
Enigmatisms:fix_ll2int
Jul 31, 2025
Merged

[CINN] Robustify min/max type matching#74316
lshpku merged 1 commit intoPaddlePaddle:developfrom
Enigmatisms:fix_ll2int

Conversation

@Enigmatisms
Copy link
Contributor

PR Category

CINN

PR Types

Bug fixes

Description

增补了一种情况下

未能考虑的问题。对应问题导致了6个模型出错(arange fusion之后引入的)。
方法很简单:判断min/max operand左右两边是否都存在 dynamic shape symbol,如果是,那就不能用比较弱的 ir::Cast,而必须使用 ir::Call 进行强制类型转换了。

Pcard-89620

@paddle-bot
Copy link

paddle-bot bot commented Jul 30, 2025

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

@lshpku lshpku merged commit 2131d39 into PaddlePaddle:develop Jul 31, 2025
51 checks passed
Enigmatisms added a commit to Enigmatisms/Paddle that referenced this pull request Aug 5, 2025
Enigmatisms added a commit to Enigmatisms/Paddle that referenced this pull request Aug 6, 2025
Enigmatisms added a commit to Enigmatisms/Paddle that referenced this pull request Aug 6, 2025
phlrain pushed a commit that referenced this pull request Aug 7, 2025
…p bugs (#74437)

* [CINN] Robustify min/max type matching (#74316)

* [CINN] Fixed dynamic arange symbolic values extraction. (#74412)

* [CINN] Fix cinn_op.generate_op attribute storing useless dim_expr

* [CINN] Removed unnecessary VLOGs

* [CINN] Simplify dynamic arange logic and fix bugs.
@Enigmatisms Enigmatisms deleted the fix_ll2int branch August 29, 2025 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants