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

[Semi-Auto] Support dynamic shape in reshape spmd rule #58097

Merged
merged 3 commits into from Oct 23, 2023

Conversation

pkuzyc
Copy link
Contributor

@pkuzyc pkuzyc commented Oct 15, 2023

PR types

Bug fixes

PR changes

Others

Description

Pcard-70448
Support dynamic shape in reshape spmd rule, e.g. [-1, -1, -1, 64] --> [0, 0, 0, 2, 32], [-1, -1, -1, 64] --> [0, 0, -1, 32]. When the input shape contains '-1' values, use a special value '256' to replace '-1'.

Copy link
Contributor

@JZ-LIANG JZ-LIANG left a comment

Choose a reason for hiding this comment

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

LGTM

@JZ-LIANG JZ-LIANG merged commit f984ed1 into PaddlePaddle:develop Oct 23, 2023
28 checks passed
hitywt pushed a commit to hitywt/Paddle that referenced this pull request Oct 24, 2023
…58097)

* support dynamic input in reshape spmd rule

* remove the modification in dist_reshape.py

* small fix
jiahy0825 pushed a commit to jiahy0825/Paddle that referenced this pull request Oct 26, 2023
…58097)

* support dynamic input in reshape spmd rule

* remove the modification in dist_reshape.py

* small fix
danleifeng pushed a commit to danleifeng/Paddle that referenced this pull request Nov 14, 2023
…58097)

* support dynamic input in reshape spmd rule

* remove the modification in dist_reshape.py

* small fix
@pkuzyc pkuzyc deleted the reshape_rule_dynamic_shape branch December 22, 2023 09:39
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.

None yet

2 participants