Sequence Model week 3 problem, completely stuck

Hi guys!

I’m completely stuck with the notebook Neural_machine_translation_with_attention_v4a, in particular when I implement the function modelf. Could anybody tell me what’s wrong? I’ve tried to go ahead and implement all the functions but as this one it’s not okay my grade is not enough to pass.

I attach the document

Thanks in advance,


[code removed from moderator]

Do you still need help with this assignment?