-
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 Zero dim for embedding and one-hot #49562
Conversation
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.
customdevice 与主repo case一致
paddle/phi/infermeta/unary.cc
Outdated
x_dims.size(), | ||
1, | ||
phi::errors::InvalidArgument("Rank of Input(X) should be at least 1.")); | ||
// PADDLE_ENFORCE_GE( |
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吧
paddle/phi/infermeta/unary.cc
Outdated
x_dims.size(), | ||
1, | ||
phi::errors::InvalidArgument("Rank of Input(X) should be at least 1.")); | ||
// PADDLE_ENFORCE_GE( |
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吧
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
Others
PR changes
Others
Describe
support zero-dimension input for embedding and one-hot api-