C5 Week 3 , Neural Machine Translation

I made an error in modelf function initially and tried correcting it later on. I feel it is correct now but the error still shows up. The error is:

AssertionError: Error in test. The lists contain a different number of elements

I tried restarting kernel and restarting the notebook as per the instructions but it still exists.

Please post the entire assert stack message. Please use a screen capture image.

1 Like

Thanks for the reply. Here’s the assert stack image

And this one is my implementation of modelf

{mentor edit: code removed - not allowed by the Honor Code}

Turns out, I had made an error passing previous layer in previous function i.e in *one_step_attentuation()*.
This resulted in error in the function *modelf()*

Thank you, you saved alot of frustrating minutes for me.
Slightly different error, same issue.

1 Like