The expected output of the code is correct for the unit test for lstm_forward BUT the length of caches[0][0] is 6 and not 10 so it generates the AssertionError in the Topic
Given the expected output of two caches and the length of caches are correct, I’m not sure what the AssertionError means and how to address it.
You were correct–it was my confusion about the cache contents/size.
Per the lstm_cell_forward() instruction just after the ### END CODE HERE ### and before the return statement, the cache contents needed for backward propagation are listed: my “problem” code in lstm_forward had only 6 of the 10 items for the # Append the cache code, hence the error message.