Deep-Learning-Specialization-Coursera icon indicating copy to clipboard operation
Deep-Learning-Specialization-Coursera copied to clipboard

Week1 convolution step by step

Open VincentChong123 opened this issue 4 years ago • 0 comments

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.

VincentChong123 avatar Jul 28 '19 13:07 VincentChong123