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

Problem with 'valid' padding #3

Open
shafzhr opened this issue Apr 15, 2020 · 0 comments
Open

Problem with 'valid' padding #3

shafzhr opened this issue Apr 15, 2020 · 0 comments

Comments

@shafzhr
Copy link

shafzhr commented Apr 15, 2020

I've looked at the code and in layers/convolution.py line 156:

dA[i, :, :, :] = da_pad[pad_h: -pad_h, pad_w: -pad_w, :]

If you use 'valid' padding then pad_w and pad_h would be 0 which will put an empty array in dA.

dA[i, :, :, :] = da_pad[0: -0, 0: -0, :]
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

1 participant