Strange Error with C2W2 assignment; 6.3 Mini-Batch with Adam "KeyError: 'dW3'"

When running the “6.3 Mini-Batch with Adam” cell, I get thrown an error: “KeyError: ‘dW3’”.

For reference:

-The error is in Exercise 5: initialize_adam; line 36 (despite passing the grader test for this)
-I have passed all tests up until 6.3

I have solved the issue.

Apparently the grader allows you to initialize with the “grads” dictionary rather than the intended “parameters” dictionary, but only throws an error when running it in cell 6.3.

To clarify for people with the same issue, there is no grad[‘dW3’] so you will get a key error.

parameters[‘dW3’].shape is not equal to grads[‘dW3’].shape

There are a number of different dictionaries in this exercise for different purposes: parameters for the W^{[l]} and b^{[l]} values, grads for the various gradients (dW^{[l]}) and v for velocities. They will be in different dictionaries, but it should be the case that the shape of W3 is the same as the shape of dW3.