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

Refactor scatter, clamp and pow in cpp instead of in python #5715

Merged
merged 40 commits into from
Aug 8, 2021

Conversation

doombeaker
Copy link
Contributor

No description provided.

@doombeaker doombeaker changed the base branch from master to dev_refactor_matmul_and_add_api August 3, 2021 16:07
@doombeaker doombeaker changed the base branch from dev_refactor_matmul_and_add_api to dev_refactor_arithmetic_api August 3, 2021 16:07
@doombeaker doombeaker changed the title Refactor scatter in cpp instead of in python Refactor scatter and clamp in cpp instead of in python Aug 4, 2021
@doombeaker doombeaker changed the base branch from dev_refactor_arithmetic_api to master August 5, 2021 09:18
@github-actions
Copy link
Contributor

github-actions bot commented Aug 7, 2021

Speed stats:
GPU Name: GeForce GTX 1080 

PyTorch resnet50 time: 138.8ms (= 6940.5ms / 50, input_shape=[16, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 127.9ms (= 6392.8ms / 50, input_shape=[16, 3, 224, 224], backward is enabled)
Relative speed: 1.09 (= 138.8ms / 127.9ms)

PyTorch resnet50 time: 84.9ms (= 4244.1ms / 50, input_shape=[8, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 74.2ms (= 3711.4ms / 50, input_shape=[8, 3, 224, 224], backward is enabled)
Relative speed: 1.14 (= 84.9ms / 74.2ms)

PyTorch resnet50 time: 57.5ms (= 2873.8ms / 50, input_shape=[4, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 47.4ms (= 2367.8ms / 50, input_shape=[4, 3, 224, 224], backward is enabled)
Relative speed: 1.21 (= 57.5ms / 47.4ms)

PyTorch resnet50 time: 47.8ms (= 2389.4ms / 50, input_shape=[2, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 43.4ms (= 2167.7ms / 50, input_shape=[2, 3, 224, 224], backward is enabled)
Relative speed: 1.10 (= 47.8ms / 43.4ms)

PyTorch resnet50 time: 47.8ms (= 2389.2ms / 50, input_shape=[1, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 43.7ms (= 2185.3ms / 50, input_shape=[1, 3, 224, 224], backward is enabled)
Relative speed: 1.09 (= 47.8ms / 43.7ms)

@oneflow-ci-bot oneflow-ci-bot removed their request for review August 7, 2021 09:16
@oneflow-ci-bot oneflow-ci-bot removed their request for review August 7, 2021 14:24
@oneflow-ci-bot oneflow-ci-bot self-requested a review August 7, 2021 14:24
@doombeaker doombeaker requested review from oneflow-ci-bot and removed request for oneflow-ci-bot August 7, 2021 15:21
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot August 7, 2021 16:22
@oneflow-ci-bot oneflow-ci-bot self-requested a review August 7, 2021 19:12
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot August 7, 2021 20:38
@oneflow-ci-bot oneflow-ci-bot self-requested a review August 7, 2021 22:04
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot August 8, 2021 00:01
@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2021

Speed stats:
GPU Name: GeForce GTX 1080 

PyTorch resnet50 time: 138.2ms (= 6912.0ms / 50, input_shape=[16, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 125.8ms (= 6289.7ms / 50, input_shape=[16, 3, 224, 224], backward is enabled)
Relative speed: 1.10 (= 138.2ms / 125.8ms)

PyTorch resnet50 time: 82.2ms (= 4112.1ms / 50, input_shape=[8, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 72.7ms (= 3636.8ms / 50, input_shape=[8, 3, 224, 224], backward is enabled)
Relative speed: 1.13 (= 82.2ms / 72.7ms)

PyTorch resnet50 time: 57.4ms (= 2867.6ms / 50, input_shape=[4, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 50.3ms (= 2513.4ms / 50, input_shape=[4, 3, 224, 224], backward is enabled)
Relative speed: 1.14 (= 57.4ms / 50.3ms)

PyTorch resnet50 time: 46.2ms (= 2309.9ms / 50, input_shape=[2, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 41.8ms (= 2089.5ms / 50, input_shape=[2, 3, 224, 224], backward is enabled)
Relative speed: 1.11 (= 46.2ms / 41.8ms)

PyTorch resnet50 time: 43.8ms (= 2191.6ms / 50, input_shape=[1, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 49.6ms (= 2478.1ms / 50, input_shape=[1, 3, 224, 224], backward is enabled)
Relative speed: 0.88 (= 43.8ms / 49.6ms)

@oneflow-ci-bot oneflow-ci-bot merged commit 543d3df into master Aug 8, 2021
@oneflow-ci-bot oneflow-ci-bot deleted the refacotr_scatter_py2cpp branch August 8, 2021 02:11
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.

3 participants