oneflow icon indicating copy to clipboard operation
oneflow copied to clipboard

module.to aligned with pytorch

Open daquexian opened this issue 3 years ago • 10 comments

module.to 和 pytorch 对齐

daquexian avatar Sep 13 '22 08:09 daquexian

Code got formatted by CI. Please request CI again if you still want to have this PR merged. If the PR is from a forked repo, please download the patch files from the GitHub Actions web page and apply them locally.

github-actions[bot] avatar Sep 15 '22 05:09 github-actions[bot]

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

github-actions[bot] avatar Sep 15 '22 16:09 github-actions[bot]

Speed stats:

github-actions[bot] avatar Sep 15 '22 16:09 github-actions[bot]

View latest API docs preview at: https://staging.oneflow.info/docs/Oneflow-Inc/oneflow/pr/9083/

github-actions[bot] avatar Sep 16 '22 10:09 github-actions[bot]

Speed stats:

github-actions[bot] avatar Sep 16 '22 10:09 github-actions[bot]

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

github-actions[bot] avatar Sep 17 '22 03:09 github-actions[bot]

Speed stats:

github-actions[bot] avatar Sep 17 '22 03:09 github-actions[bot]

View latest API docs preview at: https://staging.oneflow.info/docs/Oneflow-Inc/oneflow/pr/9083/

github-actions[bot] avatar Sep 22 '22 09:09 github-actions[bot]

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

github-actions[bot] avatar Sep 22 '22 09:09 github-actions[bot]

Speed stats:

github-actions[bot] avatar Sep 22 '22 09:09 github-actions[bot]

View latest API docs preview at: https://staging.oneflow.info/docs/Oneflow-Inc/oneflow/pr/9083/

github-actions[bot] avatar Sep 24 '22 15:09 github-actions[bot]

Speed stats:
GPU Name: GeForce GTX 1080 









❌ OneFlow resnet50 time: 139.7ms (= 13967.1ms / 100, input_shape=[16, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 160.8ms (= 16081.0ms / 100, input_shape=[16, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.15 (= 160.8ms / 139.7ms)

OneFlow resnet50 time: 85.4ms (= 8544.6ms / 100, input_shape=[8, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 102.1ms (= 10213.2ms / 100, input_shape=[8, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.20 (= 102.1ms / 85.4ms)

OneFlow resnet50 time: 58.1ms (= 11626.7ms / 200, input_shape=[4, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 89.5ms (= 17896.9ms / 200, input_shape=[4, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.54 (= 89.5ms / 58.1ms)

OneFlow resnet50 time: 44.6ms (= 8926.4ms / 200, input_shape=[2, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 76.1ms (= 15221.0ms / 200, input_shape=[2, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.71 (= 76.1ms / 44.6ms)

OneFlow resnet50 time: 41.3ms (= 8258.4ms / 200, input_shape=[1, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 69.4ms (= 13884.1ms / 200, input_shape=[1, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.68 (= 69.4ms / 41.3ms)

github-actions[bot] avatar Sep 24 '22 15:09 github-actions[bot]