Skip to content
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

[CINN]Fix AutoSimplify in block(i, 0, 0) case #65225

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

Aurelius84
Copy link
Contributor

@Aurelius84 Aurelius84 commented Jun 17, 2024

PR Category

CINN

PR Types

Bug fixes

Description

Pcard-67164

修复了AutoSimplify 在Block(var, 0, 0) 场景下(如对Xshape Tensor)的min/extend化简时,可能出现 -1 下溢出的问题。原始的逻辑中,会使用for->extend-1 来作为上界标记,当extend = 0 时,则会出现错误。

解决方案,将相关逻辑抽离为对偶的:TryEmplaceVarIntervalsTryErasseVarIntervals函数

Copy link

paddle-bot bot commented Jun 17, 2024

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

@Aurelius84 Aurelius84 requested review from 6clc, tc20042008 and 0x45f June 17, 2024 07:35
@Aurelius84 Aurelius84 merged commit e9310e2 into PaddlePaddle:develop Jun 18, 2024
32 of 33 checks passed
co63oc pushed a commit to co63oc/Paddle that referenced this pull request Jun 25, 2024
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.

4 participants