Skip to content

Problem with 'valid' padding #3

@shafzhr

Description

@shafzhr

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, :]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions