Both assignments in DLS C5 W3 have functions called modelf(), but it looks like you are talking about the Neural Machine Translation assignment.
Yes, you’re right about the inputs to the post_activation_LSTM_cell, but note that is just an instantiation of the parent LSTM class and that has its own definition, which is presumably where the info about 7 inputs is coming from. Because of the complex way all these things are instantiated, one easy thing to check first is just make sure that your notebook is in a consistent state. Try this:
Kernel → Restart and Clear Output
Save
Cell → Run All
Now page through carefully from the top and see if any errors are being thrown. If not, then it was just a problem with out of sync state and your code is correct.
If you still get the same error, then it’s time to go to the next level of debugging. I did not get that error, so there must be some way in which your input objects are not matching what is expected.