-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Support 0-size tensor in parameter creating, forward and backward #70504
Merged
HydrogenSulfate
merged 23 commits into
PaddlePaddle:develop
from
HydrogenSulfate:support_0-size_fwd_bwd
Jan 7, 2025
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
02aa39d
support 0-size tensor forward and backward under simple operations pr…
HydrogenSulfate a18f2cc
Merge branch 'develop' into support_0-size_fwd_bwd
HydrogenSulfate 288b863
fix error message format
HydrogenSulfate 665698a
support initializing for 0-size tensor
HydrogenSulfate a157537
add TestZeroSizeParameter
HydrogenSulfate 130251d
update forward, backward with 0-size tensor in eager/static mode
HydrogenSulfate 7b396b4
Merge branch 'develop' into support_0-size_fwd_bwd
HydrogenSulfate 2442cde
TestZeroSizeBackward skip XPU for place issue
HydrogenSulfate fc4aff3
Merge branch 'develop' into support_0-size_fwd_bwd
HydrogenSulfate c9267a9
[PIR] Insert backward ops into insertion point
SigureMo b0a87da
fix 2 ut
SigureMo 68f0af9
Merge branch 'PaddlePaddle:develop' into support_0-size_fwd_bwd
HydrogenSulfate 49f235d
Merge branch '70595' into support_0-size_fwd_bwd
HydrogenSulfate 7614038
fix add_n infermeta when meeting 0-size and update UT
HydrogenSulfate 16744ee
Merge branch 'develop' into support_0-size_fwd_bwd
HydrogenSulfate 2d7cbf1
remove warnings
HydrogenSulfate 5f71752
remove print
HydrogenSulfate 89f3195
Merge branch 'PaddlePaddle:develop' into support_0-size_fwd_bwd
HydrogenSulfate e026da1
remove unnecessary code
HydrogenSulfate d416e30
Merge branch 'support_0-size_fwd_bwd' of https://github.com/HydrogenS…
HydrogenSulfate 942f58b
remove condition of define() for paddle::Tensor
HydrogenSulfate da2ede8
Merge branch 'develop' into support_0-size_fwd_bwd
HydrogenSulfate aca7ba3
fix
HydrogenSulfate File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里建议保留一个抛出异常的else分支