【Zero-Dim】Support Zero dim for embedding and one-hot by seemingwang · Pull Request #49562 · PaddlePaddle/Paddle
PR types
Others
PR changes
Others
Describe
support zero-dimension input for embedding and one-hot api-
zhwesky2010
changed the title
Zero d
【Zero-Dim】Support Zero dim for embedding and one-hot
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
customdevice 与主repo case一致
| x_dims.size(), | ||
| 1, | ||
| phi::errors::InvalidArgument("Rank of Input(X) should be at least 1.")); | ||
| // PADDLE_ENFORCE_GE( |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个改成>=0吧
| x_dims.size(), | ||
| 1, | ||
| phi::errors::InvalidArgument("Rank of Input(X) should be at least 1.")); | ||
| // PADDLE_ENFORCE_GE( |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个改成>=0吧
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters