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

Accurate op count for convolutions? #1

Open
jonathanasdf opened this issue Apr 7, 2016 · 1 comment
Open

Accurate op count for convolutions? #1

jonathanasdf opened this issue Apr 7, 2016 · 1 comment

Comments

@jonathanasdf
Copy link

I'm not sure how cudnn does the convolutions, but I think fbcunn uses some FFT based method that probably requires much fewer ops than naive convolution. Any ideas?

@apaszke
Copy link
Owner

apaszke commented Apr 9, 2016

Oh yes, definitely. I created it to get a rough estimates of operation counts, so I assumed a naive algorithm there, but it can be definitely improved. I have no idea how many operations are required for FFT based convolutions, and I would have to read up more first. If you know this, you can either send me a formula, or I'll be more than happy to merge a PR.

As for cudnn, it depends. You can set it to use a particular algorithm, but by default it uses some heuristics to choose the best one, depending on kernel and input sizes, as well as available memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants