Skip to content

Week1 convolution step by step #2

@VincentChong123

Description

@VincentChong123

Hi,

thanks for sharing your file. For below code extracted from your file,

I propose changes below

a_prev_pad = A_prev[i]  # Select ith training example's padded activation #your original 
a_slice_prev = A_prev_pad[i, vert_start:vert_end, horiz_start:horiz_end, :] #your original 

a_prev_pad = A_prev_pad[i]  # Select ith training example's padded activation #my suggestion
a_slice_prev = a_prev_pad[vert_start:vert_end, horiz_start:horiz_end, :] #my suggestion

thanks.

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