-
Notifications
You must be signed in to change notification settings - Fork 263
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
【Hackathon No.5】为 Paddle 新增 bucketize #176
Conversation
# 六、测试和验收的考量 | ||
测试考虑的case如下: | ||
|
||
- 和pytorch结果的数值的一致性, `paddle.bucketize`,和`torch.bucketize`结果是否一致; |
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.
unit test can only use numpy
Done! |
- 未输入`right`时的输出正确性; | ||
- 未输入`out_int32`时的输出正确性; | ||
- 错误检查:输入`x`不是Tensor时,能否正确抛出错误; | ||
- 错误检查:`axis`所指维度在当前Tensor中不合法时能正确抛出错误。 |
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.
there is no parameter of axis
, why do we need this case
Done |
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
PaddlePaddle Hackathon 第三期 No.5 为 Paddle 新增 bucketize