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

align view input style with torch #5676

Merged
merged 5 commits into from Jul 30, 2021
Merged

align view input style with torch #5676

merged 5 commits into from Jul 30, 2021

Conversation

BBuf
Copy link
Contributor

@BBuf BBuf commented Jul 30, 2021

view和Pytorch对齐输入参数形式,支持flow.Size传参

@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot July 30, 2021 14:32
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot July 30, 2021 15:46
@github-actions
Copy link
Contributor

Speed stats:
GPU Name: GeForce GTX 1080 

PyTorch resnet50 time: 139.8ms (= 6987.7ms / 50, input_shape=[16, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 126.7ms (= 6332.7ms / 50, input_shape=[16, 3, 224, 224], backward is enabled)
Relative speed: 1.10 (= 139.8ms / 126.7ms)

PyTorch resnet50 time: 85.0ms (= 4250.7ms / 50, input_shape=[8, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 74.0ms (= 3701.5ms / 50, input_shape=[8, 3, 224, 224], backward is enabled)
Relative speed: 1.15 (= 85.0ms / 74.0ms)

PyTorch resnet50 time: 61.3ms (= 3065.8ms / 50, input_shape=[4, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 47.6ms (= 2380.1ms / 50, input_shape=[4, 3, 224, 224], backward is enabled)
Relative speed: 1.29 (= 61.3ms / 47.6ms)

PyTorch resnet50 time: 48.6ms (= 2428.6ms / 50, input_shape=[2, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 41.6ms (= 2081.5ms / 50, input_shape=[2, 3, 224, 224], backward is enabled)
Relative speed: 1.17 (= 48.6ms / 41.6ms)

PyTorch resnet50 time: 42.9ms (= 2143.0ms / 50, input_shape=[1, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 44.3ms (= 2215.9ms / 50, input_shape=[1, 3, 224, 224], backward is enabled)
Relative speed: 0.97 (= 42.9ms / 44.3ms)

@oneflow-ci-bot oneflow-ci-bot removed their request for review July 30, 2021 17:27
@oneflow-ci-bot oneflow-ci-bot merged commit ee5f09d into master Jul 30, 2021
@oneflow-ci-bot oneflow-ci-bot deleted the fix_view_bug branch July 30, 2021 17:27
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.

None yet

3 participants