Error:Week1,assignment1,Excercise8 - pool_backward

My code produces this error:
ValueError: non-broadcastable output operand with shape (2,1) doesn’t match the broadcast shape (2,2).
I checked the vert/horiz_start/end values and looks correct.
Error is for the case where the mode == max , on this line :
dA_prev[i, vert_start:vert_end, horiz_start:horiz_end, c] += a_prev_slice * mask

Hi @Meghashree86, let me help you with this.
Can you share your lab ID with me ?
In your assignment, you’ll see a “Help” icon on the top right, once you click on it a panel will open Your lab ID will be shown at the bottom.