UNQ_C4 GRADED FUNCTION: back_prop

Hi, I am not able to match the dimensions for back propagation, but I don’t understand why they should be tmp_grad_b1.shape (50, 4) and tmp_grad_b2.shape (5778, 4) if both y and y hat have dimensions (5778, 4).

Please help.
Thanks

I just figured out I wasn’t using batch size

2 Likes