[Zero-Dim] support input 0D Tensor for unique by sprouteer · Pull Request #49260 · PaddlePaddle/Paddle

@sprouteer

PR types

New features

PR changes

APIs

Describe

support input 0D Tensor for unique.

@paddle-bot

你的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

zhwesky2010

zhwesky2010

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与具体值的测试)

@sprouteer

zhwesky2010

Choose a reason for hiding this comment

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

LGTM

pangengzheng pushed a commit to pangengzheng/Paddle that referenced this pull request

Feb 2, 2023

@sprouteer @pangengzheng