Skip to content

Conversation

@zyfncg
Copy link
Contributor

@zyfncg zyfncg commented Mar 22, 2024

PR types

Bug fixes

PR changes

Others

Description

Pcard-67164

问题描述:
目前Group的输入Value维度符号为复合符号(如 S0+S1)时,会自动替换为新的简单符号表示(如S10)。但当输入Value的维度符号既有S0,S1 同时也有Broadcast(S0, S1),此时如果将Broadcast(S0, S1)替换为新符号的话会丢失掉与S0,S1的广播约束信息,对于此类情况Broadcast(S0, S1)是不需要替换为新符号的。

修复方案:
本PR中增加了对输入Value维度替换复合符号的过滤处理,当一个复合符号的所有基础符号都能在其他输入Value的维度符号中找到时,将不会对这样的复合符号进行替换。

@paddle-bot
Copy link

paddle-bot bot commented Mar 22, 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.

Copy link
Contributor

@jiahy0825 jiahy0825 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tc20042008 tc20042008 merged commit 41dc104 into PaddlePaddle:develop Mar 22, 2024
@zyfncg zyfncg deleted the fix_group_dim_expr branch March 25, 2024 07:57
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.

3 participants