Week1PA1 backpropagation

inside the method header conv_backward, I have always been getting the same error while have no idea how to fix it… I know the dimension seemed to be fishy but that’s what the prompt asked me to do.

Hey @jgeng,
Apologies for the delayed response. This error indicates that you have the wrong dimensions for the variable a_slice. Please note that you have to consider all the channels while defining a_slice, and not just a single channel. Just give a thought about how we apply convolutional filters. We multiply a 3D filter with a 3D input block, and here a_slice is playing the role of input block. I hope this helps.

Regards,
Elemento