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

Support inplace div add sub #7293

Merged
merged 38 commits into from
Jan 25, 2022
Merged

Conversation

MARD1NO
Copy link
Contributor

@MARD1NO MARD1NO commented Jan 19, 2022

  • 增加inplace版本 div sub
  • 增加 mul_ 文档
    image

image

image

@MARD1NO MARD1NO marked this pull request as ready for review January 19, 2022 06:43
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot January 24, 2022 13:29
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot January 24, 2022 15:07
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot January 24, 2022 16:44
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot January 24, 2022 18:04
@github-actions
Copy link
Contributor

CI failed when running job: cpu-module. PR label automerge has been removed

@oneflow-ci-bot oneflow-ci-bot removed their request for review January 24, 2022 18:48
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot January 25, 2022 05:52
@github-actions
Copy link
Contributor

Speed stats:
GPU Name: GeForce GTX 1080 

OneFlow resnet50 time: 136.6ms (= 13663.7ms / 100, input_shape=[16, 3, 224, 224])
PyTorch resnet50 time: 138.8ms (= 13882.4ms / 100, input_shape=[16, 3, 224, 224])
✔️ Relative speed: 1.02 (= 138.8ms / 136.6ms)

OneFlow resnet50 time: 78.5ms (= 7849.3ms / 100, input_shape=[8, 3, 224, 224])
PyTorch resnet50 time: 83.5ms (= 8354.1ms / 100, input_shape=[8, 3, 224, 224])
✔️ Relative speed: 1.06 (= 83.5ms / 78.5ms)

OneFlow resnet50 time: 52.2ms (= 10444.1ms / 200, input_shape=[4, 3, 224, 224])
PyTorch resnet50 time: 56.1ms (= 11223.6ms / 200, input_shape=[4, 3, 224, 224])
✔️ Relative speed: 1.07 (= 56.1ms / 52.2ms)

OneFlow resnet50 time: 35.2ms (= 7044.0ms / 200, input_shape=[2, 3, 224, 224])
PyTorch resnet50 time: 47.4ms (= 9479.6ms / 200, input_shape=[2, 3, 224, 224])
✔️ Relative speed: 1.35 (= 47.4ms / 35.2ms)

OneFlow resnet50 time: 42.4ms (= 8486.1ms / 200, input_shape=[1, 3, 224, 224])
PyTorch resnet50 time: 38.9ms (= 7789.8ms / 200, input_shape=[1, 3, 224, 224])
✔️ Relative speed: 0.92 (= 38.9ms / 42.4ms)

OneFlow resnet50 time: 149.0ms (= 14902.2ms / 100, input_shape=[16, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 161.0ms (= 16101.4ms / 100, input_shape=[16, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.08 (= 161.0ms / 149.0ms)

OneFlow resnet50 time: 89.9ms (= 8986.3ms / 100, input_shape=[8, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 99.5ms (= 9949.5ms / 100, input_shape=[8, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.11 (= 99.5ms / 89.9ms)

OneFlow resnet50 time: 64.2ms (= 12844.4ms / 200, input_shape=[4, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 75.5ms (= 15100.0ms / 200, input_shape=[4, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.18 (= 75.5ms / 64.2ms)

OneFlow resnet50 time: 57.1ms (= 11412.9ms / 200, input_shape=[2, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 62.9ms (= 12576.3ms / 200, input_shape=[2, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.10 (= 62.9ms / 57.1ms)

OneFlow resnet50 time: 59.0ms (= 11796.3ms / 200, input_shape=[1, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 63.7ms (= 12739.8ms / 200, input_shape=[1, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.08 (= 63.7ms / 59.0ms)

@oneflow-ci-bot oneflow-ci-bot merged commit 40d0107 into master Jan 25, 2022
@oneflow-ci-bot oneflow-ci-bot deleted the support_inplace_div_add_sub branch January 25, 2022 08:56
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.

4 participants