i got error like this

may it from slice
i didn’t get this hit
Additional Hints (if you’re stuck):

  • Use array slicing (e.g.varname[0:1,:,3:5]) for the following variables:
    a_prev_pad ,W, b

can some one help

At least two issues I can see.

  • don’t use ‘c’ as the last index when slicing a_prev_pad.
  • compute Z[…] by using the conv_single_step() function. Also you deleted two lines of important code that slice W and b to get the weights and biases.

For anyone having a problem with conv_forward, my recommendation is to start by reading the description on this thread of the various steps.