-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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 for paddle.moveaxis / quantile #49813
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
149bf9b
to
2a9c181
Compare
de3f0cb
to
89d9aba
Compare
89d9aba
to
6170d10
Compare
raise ValueError("Each elemment of 'source' must be unique!") | ||
count = Counter(dst).most_common(1) | ||
if count[0][1] > 1: | ||
if len(dst) != len(set(dst)): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里的改动看起来是一个不兼容修改,会不会出现
(0, 0) -> (1, 1) 情况
出现这种情况API能正常执行吗?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个作用是用来查重的,如果有重复的:
raise ValueError("Each elemment of 'source' must be unique!")
之前也是这个逻辑,这里改了下写法
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR types
New features
PR changes
APIs
Describe
[Zero-Dim] support input 0D for paddle.moveaxis/quantile