When applying the conv_backward I get everything right, except for the shape of db…

## dA_mean = 1.4524377775388075

dW_mean = 1.7269914583139097

db_mean = 7.839232564616846

AssertionError Traceback (most recent call last)

in

21 assert dA.shape == (10, 4, 4, 3), f"Wrong shape for dA {dA.shape} != (10, 4, 4, 3)"

22 assert dW.shape == (2, 2, 3, 8), f"Wrong shape for dW {dW.shape} != (2, 2, 3, 8)"

—> 23 assert db.shape == (1, 1, 1, 8), f"Wrong shape for db {db.shape} != (1, 1, 1, 8)"

24 assert np.isclose(np.mean(dA), 1.4524377), “Wrong values for dA”

25 assert np.isclose(np.mean(dW), 1.7269914), “Wrong values for dW”

AssertionError: Wrong shape for db (10, 4, 4, 8) != (1, 1, 1, 8)

How is that possible that I get the right final answer with the wrong db shape? db has the same shape as dZ.