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 Torch.nn.functional poolXd #6184

Merged
merged 17 commits into from Sep 7, 2021
Merged

Align Torch.nn.functional poolXd #6184

merged 17 commits into from Sep 7, 2021

Conversation

MARD1NO
Copy link
Contributor

@MARD1NO MARD1NO commented Sep 7, 2021

对齐torch.nn.functional.pool系列算子

@MARD1NO MARD1NO marked this pull request as ready for review September 7, 2021 04:49
@github-actions
Copy link
Contributor

github-actions bot commented Sep 7, 2021

Speed stats:
GPU Name: GeForce GTX 1080 

OneFlow resnet50 time: 127.9ms (= 6395.0ms / 50, input_shape=[16, 3, 224, 224])
PyTorch resnet50 time: 142.3ms (= 7114.9ms / 50, input_shape=[16, 3, 224, 224])
Relative speed: 1.11 (= 142.3ms / 127.9ms)

OneFlow resnet50 time: 74.4ms (= 3718.9ms / 50, input_shape=[8, 3, 224, 224])
PyTorch resnet50 time: 86.2ms (= 4309.0ms / 50, input_shape=[8, 3, 224, 224])
Relative speed: 1.16 (= 86.2ms / 74.4ms)

OneFlow resnet50 time: 48.0ms (= 2398.2ms / 50, input_shape=[4, 3, 224, 224])
PyTorch resnet50 time: 57.2ms (= 2857.8ms / 50, input_shape=[4, 3, 224, 224])
Relative speed: 1.19 (= 57.2ms / 48.0ms)

OneFlow resnet50 time: 43.3ms (= 2167.4ms / 50, input_shape=[2, 3, 224, 224])
PyTorch resnet50 time: 49.1ms (= 2456.0ms / 50, input_shape=[2, 3, 224, 224])
Relative speed: 1.13 (= 49.1ms / 43.3ms)

OneFlow resnet50 time: 41.0ms (= 2050.2ms / 50, input_shape=[1, 3, 224, 224])
PyTorch resnet50 time: 41.5ms (= 2073.8ms / 50, input_shape=[1, 3, 224, 224])
Relative speed: 1.01 (= 41.5ms / 41.0ms)

OneFlow resnet50 time: 157.7ms (= 7886.6ms / 50, input_shape=[16, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 161.6ms (= 8081.2ms / 50, input_shape=[16, 3, 224, 224], ddp, world size=2)
Relative speed: 1.02 (= 161.6ms / 157.7ms)

OneFlow resnet50 time: 104.1ms (= 5207.3ms / 50, input_shape=[8, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 102.8ms (= 5142.4ms / 50, input_shape=[8, 3, 224, 224], ddp, world size=2)
Relative speed: 0.99 (= 102.8ms / 104.1ms)

OneFlow resnet50 time: 77.8ms (= 3889.3ms / 50, input_shape=[4, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 73.9ms (= 3697.1ms / 50, input_shape=[4, 3, 224, 224], ddp, world size=2)
Relative speed: 0.95 (= 73.9ms / 77.8ms)

OneFlow resnet50 time: 69.0ms (= 3450.6ms / 50, input_shape=[2, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 64.2ms (= 3210.2ms / 50, input_shape=[2, 3, 224, 224], ddp, world size=2)
Relative speed: 0.93 (= 64.2ms / 69.0ms)

OneFlow resnet50 time: 71.5ms (= 3572.6ms / 50, input_shape=[1, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 65.3ms (= 3264.8ms / 50, input_shape=[1, 3, 224, 224], ddp, world size=2)
Relative speed: 0.91 (= 65.3ms / 71.5ms)

@oneflow-ci-bot oneflow-ci-bot merged commit 6b20bd4 into master Sep 7, 2021
@oneflow-ci-bot oneflow-ci-bot deleted the debug_layernorm branch September 7, 2021 06:21
@oneflow-ci-bot oneflow-ci-bot removed their request for review September 7, 2021 06:21
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

4 participants