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

[Zero-Dim] support input 0D Tensor for unique #49260

Merged
merged 1 commit into from
Jan 20, 2023

Conversation

sprouteer
Copy link
Contributor

@sprouteer sprouteer commented Dec 22, 2022

PR types

New features

PR changes

APIs

Describe

support input 0D Tensor for unique.

@paddle-bot
Copy link

paddle-bot bot commented Dec 22, 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.

@sprouteer sprouteer changed the title fix unique_kernel support axis=-1 [Zero-Dim] support input 0D Tensor for unique Dec 23, 2022
@sprouteer sprouteer force-pushed the fix_unique_op_axis branch 3 times, most recently from d140607 to 2e7791d Compare January 11, 2023 09:59
Copy link
Contributor

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

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

测试case需要补充下:
动态图前向、反向(包括out、index、inverse、count、x_grad的shape与具体值的测试)
静态图前向、反向(包括out、index、inverse、count、x_grad的shape与具体值的测试)

paddle/phi/infermeta/unary.cc Outdated Show resolved Hide resolved
Copy link
Contributor

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

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

LGTM

@zhwesky2010 zhwesky2010 merged commit ee4e532 into PaddlePaddle:develop Jan 20, 2023
pangengzheng pushed a commit to pangengzheng/Paddle that referenced this pull request Feb 2, 2023
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