Skip to content
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

Merged
merged 4 commits into from
Jul 15, 2022
Merged

【Hackathon No.5】为 Paddle 新增 bucketize #176

merged 4 commits into from
Jul 15, 2022

Conversation

Li-fAngyU
Copy link
Contributor

PaddlePaddle Hackathon 第三期 No.5 为 Paddle 新增 bucketize

@paddle-bot
Copy link

paddle-bot bot commented Jul 8, 2022

你的PR提交成功,感谢你对开源项目的贡献!
请检查PR提交格式和内容是否完备,具体请参考示例模版
Your PR has been submitted. Thanks for your contribution!
Please check its format and content. For this, you can refer to Template and Demo.

@Li-fAngyU Li-fAngyU changed the title 【Hackathon No.6】为 Paddle 新增 bucketize 【Hackathon No.5】为 Paddle 新增 bucketize Jul 8, 2022
# 六、测试和验收的考量
测试考虑的case如下:

- 和pytorch结果的数值的一致性, `paddle.bucketize`,和`torch.bucketize`结果是否一致;
Copy link
Contributor

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

@Li-fAngyU
Copy link
Contributor Author

Done!

@Li-fAngyU Li-fAngyU requested a review from jeff41404 July 11, 2022 13:27
- 未输入`right`时的输出正确性;
- 未输入`out_int32`时的输出正确性;
- 错误检查:输入`x`不是Tensor时,能否正确抛出错误;
- 错误检查:`axis`所指维度在当前Tensor中不合法时能正确抛出错误。
Copy link
Contributor

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

@Li-fAngyU
Copy link
Contributor Author

Done

@Li-fAngyU Li-fAngyU requested a review from jeff41404 July 14, 2022 15:14
Copy link
Contributor

@jeff41404 jeff41404 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants