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

Fix split bug in static mode #45906

Merged
merged 5 commits into from
Sep 9, 2022
Merged

Conversation

Charles-hit
Copy link
Contributor

@Charles-hit Charles-hit commented Sep 9, 2022

PR types

Bug fixes

PR changes

Others

Describe

修复静态图模式下当切分的tensor需要切分的维度信息设置成-1时,返回的结果与split重构前结果不一致的情况,并且添加相应单测。
情况如下:
在静态图编译期,需要切分的tensor 维度信息为[-1,4,5],对第0维传入sectionsornum = 2进行切分。
原先返回结果:两个维度为[-1,4,5]的tensor
重构后返回结果:两个维度为[-1,-1,-1]的tensor,导致后续推导维度信息出错。

@paddle-bot
Copy link

paddle-bot bot commented Sep 9, 2022

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

@zyfncg zyfncg merged commit bd8f998 into PaddlePaddle:develop Sep 9, 2022
Charles-hit added a commit to Charles-hit/Paddle that referenced this pull request Sep 15, 2022
* fix split bug in static mode

* modify code style

* modify code style

* add unit test for split
phlrain pushed a commit that referenced this pull request Sep 16, 2022
…s for fill_any_like op (#46079)

* Fix split bug in static mode (#45906)

* fix split bug in static mode

* modify code style

* modify code style

* add unit test for split

* add convert rules for fill_any_like op in paddle science (#45985)

* add convert rules for fill_any_like op in paddle science

* add unit test for fill_any_like op in paddle science

* modify fill_any_like convert rule

* modify fill_any_like convert rule dtype
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