【Hackathon 9th Sprint No.1】add api compatibility for paddle.unique - part [fluid_ops]
PR Category
User Experience
PR Types
New features
Description
paddle.unique 兼容性修改 返回数据可能为数组或一项,使用装饰器方式修改 sorted 参数不影响返回结果,结果始终是排序,增加参数保持兼容性
你的PR提交成功,感谢你对开源项目的贡献! 请关注后续CI自动化测试结果,详情请参考Paddle-CI手册。 Your PR has been submitted. Thanks for your contribution! Please wait for the result of CI firstly. See Paddle CI Manual for details.
Codecov Report
:white_check_mark: All modified and coverable lines are covered by tests.
:warning: Please upload report for BASE (develop@3e93582). Learn more about missing BASE report.
Additional details and impacted files
@@ Coverage Diff @@
## develop #76387 +/- ##
===========================================
Coverage ? 100.00%
===========================================
Files ? 1
Lines ? 5
Branches ? 0
===========================================
Hits ? 5
Misses ? 0
Partials ? 0
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
/re-run all-failed
/re-run all-failed
@zhwesky2010 CI已完成需要review
竞品有使用吗,这个任务需要做的是对齐运算结果,不用管paddle之前怎么写的。
先提交PaConvert测试吧,比对size超过1000的结果,sorted=True/False的结果比对。
竞品有使用吗,这个任务需要做的是对齐运算结果,不用管paddle之前怎么写的。
先提交PaConvert测试吧,比对size超过1000的结果,sorted=True/False的结果比对。
因为PaConvert的CI需要paddle合入之后测试,所以先提交这里,已增加PaConvert PR
https://github.com/PaddlePaddle/PaConvert/pull/758
参数sorted=True/False测试通过
torch sorted=False时也会排序
torch.unique(torch.arange(1001, 0, -1), sorted=False)
torch的sorted也和paddle一样不会生效吗
torch的sorted也和paddle一样不会生效吗
是的torch的没有生效
/re-run all-failed
/re-run all-failed
/re-run all-failed
/re-run all-failed