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 zero tensor for unique, unstack #36021

Merged
merged 5 commits into from
Sep 27, 2021
Merged

Conversation

bjjwwang
Copy link
Contributor

@bjjwwang bjjwwang commented Sep 23, 2021

PR types

Bug fixes

PR changes

OPs

Describe

针对元素个数为0的tensor 增加检查

  1. 对unstack op的 dim 0做检查,如果shape里面含0,不做内存操作
  2. 对unique op的dim 0做检查,如果shape里面含0,不做内存操作

@paddle-bot-old
Copy link

paddle-bot-old bot commented Sep 23, 2021

✅ This PR's description meets the template requirements!
Please wait for other CI results.

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Contributor

@TeslaZhao TeslaZhao left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@ForFishes ForFishes left a comment

Choose a reason for hiding this comment

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

LGTM

@ForFishes ForFishes merged commit efd3538 into PaddlePaddle:develop Sep 27, 2021
jzhang533 pushed a commit that referenced this pull request Sep 27, 2021
* fix unique unstack dim 0

* fix unique_op format
AnnaTrainingG pushed a commit to AnnaTrainingG/Paddle that referenced this pull request Sep 29, 2021
* fix extra op for expand, expand_as, tile, unstack

* fix unique unstack dim 0

* Update expand_v2_op.cc

* fix unique_op format
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