Assignment1: Neural_machine_translation_with_attention_v4a

I think the error is in the Dense layer. I applied a Dense layer to the hidden state output (s), and used units length= machine_vocab_size.
Please let me know if the problem is in the dense layer or another line.

1 Like

Do the ideas here help?


Thanks for your reply, but it did not work. I just input the “s” to the output_layer. but still have the same error

Try “File → Save and Checkpoint”, and then “Kernel → Restart and clear output” then “Cell->Run All”.

Do this any time you change anything in an assignment that uses global variables.

Thank you it works