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

Confirmation for strange-looking assert in filter_acts.cu #3

Closed
GoogleCodeExporter opened this issue Feb 25, 2016 · 1 comment
Closed

Comments

@GoogleCodeExporter
Copy link

Hi Alex,

Could you confirm that this slightly strange-looking line from filter_act.cu is 
correct?

assert(paddingStart <= 0 && paddingStart + (numModules-1)*moduleStride + 
filterSize >= imgSize);

In particular, why are you multiplying numModules (which the square of 
numModulesX) by the stride and adding filterSize (which is not the square, but 
the side-length).

If you're sure, I trust you, but if you could additionally lend some intuition 
for why I'd appreciate it.

There is a comment in the code but I still don't get it:
// These routines don't handle the case when only part of the image is visited 
in the convolution

Thanks,
- James

Original issue reported on code.google.com by james.be...@gmail.com on 10 Jan 2012 at 10:35

@GoogleCodeExporter
Copy link
Author

Original comment by akrizhev...@gmail.com on 13 Jan 2012 at 3:23

  • Changed state: Fixed

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

No branches or pull requests

1 participant