-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[API Compatibility] Add lazy import and other aliases for paddle.utils.data
#77451
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
base: develop
Are you sure you want to change the base?
[API Compatibility] Add lazy import and other aliases for paddle.utils.data
#77451
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
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.
迁移更多API到paddle.utils.data里面来,同时在test/legacy_test/test_paddle_io_alias.py添加更多测试,这个测试改个名字吧。改成test_paddle_utils_data.py,另外覆盖率没过。
Codecov Report❌ Patch coverage is
❌ Your patch status has failed because the patch coverage (42.85%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #77451 +/- ##
==========================================
Coverage ? 42.85%
==========================================
Files ? 1
Lines ? 7
Branches ? 0
==========================================
Hits ? 3
Misses ? 4
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…ndom_split, default_collate
paddle.utils.datapaddle.utils.data
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.
- 覆盖率没过
- 在PaConvert上测试下这些API是否已实现『用法完全一致』,目前解决了调用路径问题。如果还有其他兼容问题,需继续修改原API。最终目标还是通过PaConvert测试
PR Category
User Experience
PR Types
Improvements
Description
paddle.utils.datato avoid circular importSampler,SequenceSampler,Subset,get_worker_info,random_split,default_collate_fn. Some imports are not used sonoqais addedSee Also: #77391
See Also: #77275
Used AI Studio
目前支持如下方式导入(和torch对齐):