-
Notifications
You must be signed in to change notification settings - Fork 667
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
Dev flow.utils.data part2 #5500
Merged
Merged
Conversation
This file contains 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
…eflow into dev_fix_slice_bug
Flowingsun007
requested review from
oneflow-ci-bot
and removed request for
oneflow-ci-bot
July 26, 2021 08:09
Flowingsun007
requested review from
oneflow-ci-bot
and removed request for
oneflow-ci-bot
July 26, 2021 16:59
CI failed, removing label automerge |
Speed stats:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
dataloader最小实现(part2)
此pr主要改动:
1.导出dataloader,dataset基础接口
外部可以直接使用导出后的接口,如,
flow.utils.data.Dataset
,flow.utils.data.DataLoader
等:2.引入torchvision包下的部分datasets和transforms转换工具
torchvision下的transforms和datasets两个文件夹中的部分常用功能,譬如:
在多个网络/数据集上测试,数据均可以正常加载,训练loss可正常下降。test case在
oneflow/python/utils/vision/
:test_mlp_flow.py # 测试fashion-mnist
test_lenet_flow.py # 测试fashion-mnist
test_cifar_flow.py # 测试cifar10
注:test case由于训练比较慢,暂时没有移入test/dataloader作为CI的test case,后续看情况是否需要跑CI