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

Faster decorator #5996

Merged
merged 5 commits into from Aug 22, 2021
Merged

Faster decorator #5996

merged 5 commits into from Aug 22, 2021

Conversation

lixinqi
Copy link
Contributor

@lixinqi lixinqi commented Aug 22, 2021

No description provided.

@github-actions
Copy link
Contributor

Speed stats:
GPU Name: GeForce GTX 1080 

PyTorch resnet50 time: 140.5ms (= 7025.7ms / 50, input_shape=[16, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 128.2ms (= 6412.4ms / 50, input_shape=[16, 3, 224, 224], backward is enabled)
Relative speed: 1.10 (= 140.5ms / 128.2ms)

PyTorch resnet50 time: 85.5ms (= 4273.6ms / 50, input_shape=[8, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 74.7ms (= 3733.5ms / 50, input_shape=[8, 3, 224, 224], backward is enabled)
Relative speed: 1.14 (= 85.5ms / 74.7ms)

PyTorch resnet50 time: 58.6ms (= 2930.7ms / 50, input_shape=[4, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 47.3ms (= 2366.7ms / 50, input_shape=[4, 3, 224, 224], backward is enabled)
Relative speed: 1.24 (= 58.6ms / 47.3ms)

PyTorch resnet50 time: 48.9ms (= 2444.8ms / 50, input_shape=[2, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 37.8ms (= 1888.0ms / 50, input_shape=[2, 3, 224, 224], backward is enabled)
Relative speed: 1.29 (= 48.9ms / 37.8ms)

PyTorch resnet50 time: 43.5ms (= 2176.1ms / 50, input_shape=[1, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 37.2ms (= 1861.1ms / 50, input_shape=[1, 3, 224, 224], backward is enabled)
Relative speed: 1.17 (= 43.5ms / 37.2ms)

@github-actions
Copy link
Contributor

Speed stats:
GPU Name: GeForce GTX 1080 

PyTorch resnet50 time: 140.5ms (= 7026.0ms / 50, input_shape=[16, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 128.4ms (= 6419.7ms / 50, input_shape=[16, 3, 224, 224], backward is enabled)
Relative speed: 1.09 (= 140.5ms / 128.4ms)

PyTorch resnet50 time: 84.7ms (= 4234.4ms / 50, input_shape=[8, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 74.4ms (= 3719.3ms / 50, input_shape=[8, 3, 224, 224], backward is enabled)
Relative speed: 1.14 (= 84.7ms / 74.4ms)

PyTorch resnet50 time: 58.6ms (= 2930.7ms / 50, input_shape=[4, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 47.4ms (= 2370.3ms / 50, input_shape=[4, 3, 224, 224], backward is enabled)
Relative speed: 1.24 (= 58.6ms / 47.4ms)

PyTorch resnet50 time: 48.6ms (= 2431.0ms / 50, input_shape=[2, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 37.5ms (= 1876.4ms / 50, input_shape=[2, 3, 224, 224], backward is enabled)
Relative speed: 1.30 (= 48.6ms / 37.5ms)

PyTorch resnet50 time: 45.9ms (= 2296.7ms / 50, input_shape=[1, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 37.9ms (= 1893.7ms / 50, input_shape=[1, 3, 224, 224], backward is enabled)
Relative speed: 1.21 (= 45.9ms / 37.9ms)

@oneflow-ci-bot oneflow-ci-bot merged commit 0ba9198 into master Aug 22, 2021
@oneflow-ci-bot oneflow-ci-bot deleted the faster_decorator branch August 22, 2021 14:51
lixinqi added a commit that referenced this pull request Aug 23, 2021
oneflow-ci-bot added a commit that referenced this pull request Aug 23, 2021
This reverts commit 0ba9198.

Co-authored-by: oneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
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