Update_parameters_with_momentum not working even though update seems fine

`v[“dW” + str(l)] = beta * v[“dW” + str(l)] + (1 - beta) * grads[“dW” + str(l)]

v[“dW” + str(l)] = beta * v[“db” + str(l)] + (1 - beta) * grads[“db” + str(l)]

parameters[“W” + str(l)] = parameters[“W” + str(l)] - learning_rate * v[“dW” + str(l)]

parameters[“b” + str(l)] = parameters[“b” + str(l)] - learning_rate * v[“db” + str(l)]`
what could be the cause?

Please do not post your code… That is not recommended.
At least, there is a typo in the 2nd line. I believe you want to update “db”, not “dW”.

Ok Thanks, it is solved now