Skip to content

Conversation

taivu1998
Copy link
Contributor

@taivu1998 taivu1998 commented Aug 18, 2020

Stack from ghstack:

Differential Revision: D23197567

taivu1998 pushed a commit that referenced this pull request Aug 18, 2020
ghstack-source-id: 60a8188
Pull Request resolved: #43221
@dr-ci
Copy link

dr-ci bot commented Aug 18, 2020

💊 CI failures summary and remediations

As of commit 0ca3f12 (more details on the Dr. CI page):


  • 1/1 failures possibly* introduced in this PR
    • 1/1 non-CircleCI failure(s)

1 failure confirmed as flaky and can be ignored:

  • pytorch_linux_xenial_cuda10_2_cudnn7_py3_gcc7_test

ci.pytorch.org: 1 failed


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 16 times.

@taivu1998 taivu1998 requested a review from kimishpatel August 18, 2020 20:33
for (size_t batch_size = 1; batch_size < 5; ++batch_size) {
for (size_t width = 32; width < 256; width *= 2) {
b->Args({input_channels, output_channels, kernel, batch_size, width, true});
b->Args({input_channels, output_channels, kernel, batch_size, width, false});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you want two benchmark, no? Otherwise how are you distinguish the reported results between optimized vs unoptimized? Looking at the values reported by benchmark? I think that is fine as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So currently if we look at two consecutive lines, we can see the results for the two cases: optimized (Optimzed:1) and unoptimized(Optimzed:0). I think that way we can easily compare the performance for a given set of hyperparameter. Let me know if that's ok.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, thats ok.

Copy link
Contributor

@kimishpatel kimishpatel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Can you add the benchmark results here?

@kimishpatel

This comment has been minimized.

@kimishpatel
Copy link
Contributor

Results are looking good. I am wondering if you can summarize the average improvement.

@taivu1998
Copy link
Contributor Author

taivu1998 commented Aug 18, 2020

Average Improvement: 85%

Example Run:

Hyperparameters Time (Unoptimized) Time (Optimized) Improvement
Input Channels: 32, Output Channels: 32, Kernel: 3, Batch Size: 1, Width: 32 1465880 ns 1075866 ns 27%
Input Channels: 32, Output Channels: 32, Kernel: 3, Batch Size: 1, Width: 128 2969526 ns 1904455 ns 36%
Input Channels: 32, Output Channels: 32, Kernel: 3, Batch Size: 4, Width: 64 33907082 ns 3265120 ns 90%
Input Channels: 32, Output Channels: 32, Kernel: 4, Batch Size: 3, Width: 128 69604856 ns 5152217 ns 93%
Input Channels: 32, Output Channels: 128, Kernel: 7, Batch Size: 2, Width: 64 637923970 ns 21728873 ns 97%
Input Channels: 32, Output Channels: 128, Kernel: 7, Batch Size: 4, Width: 128 1669162458 ns 106482191 ns 94%

@kimishpatel
Copy link
Contributor

I mean more side-to-side comparison would have been nice. So that you can just show what is the % improvement.

taivu1998 pushed a commit that referenced this pull request Aug 19, 2020
ghstack-source-id: 1f4accb
Pull Request resolved: #43221
taivu1998 pushed a commit that referenced this pull request Aug 19, 2020
ghstack-source-id: 54b001c
Pull Request resolved: #43221
taivu1998 pushed a commit that referenced this pull request Aug 20, 2020
ghstack-source-id: 3b8eed9
Pull Request resolved: #43221
@facebook-github-bot
Copy link
Contributor

@kimishpatel merged this pull request in da03625.

@facebook-github-bot facebook-github-bot deleted the gh/taivu1998/4/head branch August 24, 2020 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants