Course 4, Week 1, Assignment 1, Index Error

Hi everyone. I have been stuck on this for a few days. I am getting the following error for conv_forward, but I’m not sure what I’m doing wrong. Help would be greatly appreciated.

I would guess there is an error in your code for a_slice_prev.

Hi @TheLonelyChemE,

Do check the shape of z. Is it what you had wanted it to be?

Z is not the right shape. Z.shape yields (). I tried using an assert line to fix this, but the code breaks before that as shown in the error message. I suspect there is something wrong for a_slice_prev, but I can’t figure out what it is.