-
Notifications
You must be signed in to change notification settings - Fork 5.9k
【Hackathon 9th Sprint No.1】add api compatibility for paddle.unique - part #76387
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
Changes from 6 commits
ac045fd
8e5e6ac
80764fd
7a1d555
fb311dd
8b6e2d7
46814a0
68fca13
379a6ea
d8cc756
8be342b
c9b57aa
f5c9c30
659bfee
f845a1f
76f6321
dd247c8
ea1c1f1
71af57d
6d41363
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3770,13 +3770,15 @@ def unique( | |
| ) -> Tensor | tuple[Tensor, ...]: ... | ||
|
|
||
|
|
||
| @param_two_alias(["x", "input"], ["axis", "dim"]) | ||
| def unique( | ||
| x, | ||
| return_index=False, | ||
| return_inverse=False, | ||
| return_counts=False, | ||
| axis=None, | ||
| dtype="int64", | ||
| sorted=True, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这个目前应该无法实现 API完全一致吧,参数顺序不同。 group_norm也有这个问题。不过这个没法判断数据类型了,只能新增加一个paddle.compat.unique了?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 好的那增加paddle.compat.unique
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @zhwesky2010 已增加paddle.compat.unique CI完成,PaConvert PaddlePaddle/PaConvert#758 修改测试通过
co63oc marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| name=None, | ||
| ): | ||
| r""" | ||
|
|
@@ -3793,6 +3795,7 @@ def unique( | |
| Default: None. | ||
| dtype(str|paddle.dtype|np.dtype, optional): The date type of `indices` or `inverse` tensor: int32 or int64. | ||
| Default: int64. | ||
| sorted(bool, optional): Does not affect the return result, used for compatibility. | ||
|
||
| name(str|None, optional): Name for the operation. For more information, please refer to | ||
| :ref:`api_guide_Name`. Default: None. | ||
|
|
||
|
|
||


Uh oh!
There was an error while loading. Please reload this page.