C4 week 1 , conv_forward ERROR: too many indices for array

Hello everyone, I hope everyone is doing well.
here’s the problem i am facing:
when i call the function conv_single_step to get Z[i,h,w,c] in the function conv_forward, i am getting an error “too many indices for array”.
it seems like an easy problem but i am not able to figure it out atm.
Thankful for any help :slight_smile:

That function requires three arguments.

  • a_slice_prev
  • the sliced version of W
  • the sliced version of b

Thank you.
I was using those args.
The issue was that i had initialised Z wrong , I hadn’t taken the number of examples m into account. :slight_smile: