Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Convolutional Neural Networks/week1/convolution_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def conv_forward(A_prev, W, b, hparameters):
A_prev_pad = zero_pad(A_prev, pad)

for i in range(m): # loop over the batch of training examples
a_prev_pad = A_prev[i] # Select ith training example's padded activation
a_prev_pad = A_prev_pad[i] # Select ith training example's padded activation
for h in range(n_H): # loop over vertical axis of the output volume
for w in range(n_W): # loop over horizontal axis of the output volume
for c in range(n_C): # loop over channels (= #filters) of the output volume
Expand Down Expand Up @@ -380,4 +380,4 @@ def pool_backward(dA, cache, mode="max"):
# Making sure your output shape is correct
assert (dA_prev.shape == A_prev.shape)

return dA_prev
return dA_prev