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 dropout api name with pytorch #6170

Merged
merged 131 commits into from
Sep 6, 2021
Merged

align dropout api name with pytorch #6170

merged 131 commits into from
Sep 6, 2021

Conversation

BBuf
Copy link
Contributor

@BBuf BBuf commented Sep 6, 2021

align dropout api name with pytorch, is_training->training!!

图片

@BBuf BBuf requested review from MARD1NO and hjchen2 September 6, 2021 06:46
@BBuf BBuf requested review from oneflow-ci-bot and removed request for oneflow-ci-bot September 6, 2021 06:49
@github-actions
Copy link
Contributor

github-actions bot commented Sep 6, 2021

Speed stats:
GPU Name: GeForce GTX 1080 

OneFlow resnet50 time: 128.6ms (= 6427.8ms / 50, input_shape=[16, 3, 224, 224])
PyTorch resnet50 time: 141.3ms (= 7063.7ms / 50, input_shape=[16, 3, 224, 224])
Relative speed: 1.10 (= 141.3ms / 128.6ms)

OneFlow resnet50 time: 74.6ms (= 3731.4ms / 50, input_shape=[8, 3, 224, 224])
PyTorch resnet50 time: 86.2ms (= 4311.7ms / 50, input_shape=[8, 3, 224, 224])
Relative speed: 1.16 (= 86.2ms / 74.6ms)

OneFlow resnet50 time: 48.4ms (= 2421.2ms / 50, input_shape=[4, 3, 224, 224])
PyTorch resnet50 time: 57.5ms (= 2873.2ms / 50, input_shape=[4, 3, 224, 224])
Relative speed: 1.19 (= 57.5ms / 48.4ms)

OneFlow resnet50 time: 40.1ms (= 2005.8ms / 50, input_shape=[2, 3, 224, 224])
PyTorch resnet50 time: 47.3ms (= 2363.1ms / 50, input_shape=[2, 3, 224, 224])
Relative speed: 1.18 (= 47.3ms / 40.1ms)

OneFlow resnet50 time: 37.8ms (= 1891.3ms / 50, input_shape=[1, 3, 224, 224])
PyTorch resnet50 time: 42.5ms (= 2126.5ms / 50, input_shape=[1, 3, 224, 224])
Relative speed: 1.12 (= 42.5ms / 37.8ms)

OneFlow resnet50 time: 157.1ms (= 7856.1ms / 50, input_shape=[16, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 165.7ms (= 8283.0ms / 50, input_shape=[16, 3, 224, 224], ddp, world size=2)
Relative speed: 1.05 (= 165.7ms / 157.1ms)

OneFlow resnet50 time: 100.7ms (= 5037.2ms / 50, input_shape=[8, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 113.1ms (= 5654.2ms / 50, input_shape=[8, 3, 224, 224], ddp, world size=2)
Relative speed: 1.12 (= 113.1ms / 100.7ms)

OneFlow resnet50 time: 76.1ms (= 3806.5ms / 50, input_shape=[4, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 75.4ms (= 3771.1ms / 50, input_shape=[4, 3, 224, 224], ddp, world size=2)
Relative speed: 0.99 (= 75.4ms / 76.1ms)

OneFlow resnet50 time: 73.1ms (= 3656.5ms / 50, input_shape=[2, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 65.6ms (= 3278.4ms / 50, input_shape=[2, 3, 224, 224], ddp, world size=2)
Relative speed: 0.90 (= 65.6ms / 73.1ms)

OneFlow resnet50 time: 70.2ms (= 3511.5ms / 50, input_shape=[1, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 59.1ms (= 2957.1ms / 50, input_shape=[1, 3, 224, 224], ddp, world size=2)
Relative speed: 0.84 (= 59.1ms / 70.2ms)

@oneflow-ci-bot oneflow-ci-bot removed their request for review September 6, 2021 08:18
@oneflow-ci-bot oneflow-ci-bot merged commit 84171da into master Sep 6, 2021
@oneflow-ci-bot oneflow-ci-bot deleted the fix_dropout branch September 6, 2021 08:20
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