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

Restruct activation grad op #5669

Merged
merged 9 commits into from
Jul 30, 2021
Merged

Conversation

MARD1NO
Copy link
Contributor

@MARD1NO MARD1NO commented Jul 30, 2021

整理激活函数grad functional,统一到一个文件下 activation.cpp

@MARD1NO MARD1NO requested review from BBuf and hjchen2 and removed request for BBuf July 30, 2021 07:33
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot July 30, 2021 09:05
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot July 30, 2021 10:12
@oneflow-ci-bot oneflow-ci-bot self-requested a review July 30, 2021 11:18
@oneflow-ci-bot oneflow-ci-bot removed their request for review July 30, 2021 13:12
@oneflow-ci-bot oneflow-ci-bot self-requested a review July 30, 2021 14:32
@github-actions
Copy link
Contributor

Speed stats:
GPU Name: GeForce GTX 1080 

PyTorch resnet50 time: 140.4ms (= 7021.2ms / 50, input_shape=[16, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 126.7ms (= 6337.1ms / 50, input_shape=[16, 3, 224, 224], backward is enabled)
Relative speed: 1.11 (= 140.4ms / 126.7ms)

PyTorch resnet50 time: 83.5ms (= 4175.2ms / 50, input_shape=[8, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 74.1ms (= 3705.2ms / 50, input_shape=[8, 3, 224, 224], backward is enabled)
Relative speed: 1.13 (= 83.5ms / 74.1ms)

PyTorch resnet50 time: 58.1ms (= 2906.1ms / 50, input_shape=[4, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 47.9ms (= 2392.6ms / 50, input_shape=[4, 3, 224, 224], backward is enabled)
Relative speed: 1.21 (= 58.1ms / 47.9ms)

PyTorch resnet50 time: 50.0ms (= 2499.1ms / 50, input_shape=[2, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 42.8ms (= 2141.5ms / 50, input_shape=[2, 3, 224, 224], backward is enabled)
Relative speed: 1.17 (= 50.0ms / 42.8ms)

PyTorch resnet50 time: 44.4ms (= 2219.3ms / 50, input_shape=[1, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 43.7ms (= 2183.1ms / 50, input_shape=[1, 3, 224, 224], backward is enabled)
Relative speed: 1.02 (= 44.4ms / 43.7ms)

@oneflow-ci-bot oneflow-ci-bot removed their request for review July 30, 2021 15:45
@oneflow-ci-bot oneflow-ci-bot merged commit de0774b into master Jul 30, 2021
@oneflow-ci-bot oneflow-ci-bot deleted the restruct_activation_grad_op branch July 30, 2021 15:46
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

3 participants