[Zero-Dim] support 0d tensor for shape and squeeze onednn kernel#52832
Merged
zhwesky2010 merged 2 commits intoApr 24, 2023
Merged
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
zhwesky2010
reviewed
Apr 14, 2023
Contributor
Author
There was a problem hiding this comment.
without this change, squeeze needs the input tensor to have at least 100 elements. otherwise, the ut will fail during teardown. But I'm not sure about why we have this constraint in python/paddle/fluid/tests/unittests/eager_op_test.py:431
AssertionError: Input's shape should be large than or equal to 100 for squeeze Op.
Contributor
|
@YangQun1 CI has failed, need to fix, we need this PR, because squeeze will change to 0D this or next week. |
a8b1b1d to
84acef2
Compare
Contributor
|
84acef2 to
119983b
Compare
119983b to
5c31019
Compare
Contributor
Author
|
@zhouwei25 Hi, there is a trt case failed in PR-CI-Coverage, it seems to not related to onednn: |
xinyu-intel
approved these changes
Apr 17, 2023
zhwesky2010
approved these changes
Apr 24, 2023
lijialin03
pushed a commit
to lijialin03/Paddle
that referenced
this pull request
Apr 25, 2023
…dlePaddle#52832) * support 0d tensor for shape and squeeze onednn kernel * set python api for shape op ut
zhwesky2010
pushed a commit
to zhwesky2010/Paddle
that referenced
this pull request
May 8, 2023
…dlePaddle#52832) * support 0d tensor for shape and squeeze onednn kernel * set python api for shape op ut
XiaoguangHu01
pushed a commit
that referenced
this pull request
May 9, 2023
#53601) * [Zero-Dim] fix functool.reduce more safe with intial value, to support empty list (#53182) * [Zero-Dim] support 0d tensor for shape and squeeze onednn kernel (#52832) * support 0d tensor for shape and squeeze onednn kernel * set python api for shape op ut * [Zero-Dim] distributed scatter/all_to_all support input 0D tensor (#53186) * [Zero-Dim] Support paddle.sum/mean/loss api output 0D,test=allcase (#52739) * [CINN Support 0D-Tensor] CINN supports 0D-Tensor with trick temporarily (#53382) * [CINN Support 0D-Tensor] CINN supports 0D-Tensor with trick temporarily * Add unittest * [CINN Support 0D-Tensor] CINN hack squeeze2 with trick temporarily (#53454) * fix test_autograd_dynamic (#53473) Co-authored-by: zhwesky2010 <[email protected]> --------- Co-authored-by: YangQun <[email protected]> Co-authored-by: HongyuJia <[email protected]> Co-authored-by: HydrogenSulfate <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PR types
New features
PR changes
OPs
Describe
Fix #51364
Support 0-d tensor for shape and squeeze onednn kernel