NLP C4W1 NMT with Attention failed test case when temperature is 0.0

I have passed all the tests except for the one on “translate”. Anyone can help shed some light on?

Failed test case: translate didn’t return the same logit twice when using temperature of 0.0.
Expected:
-9.36267375946045,
but got:
-9.361050605773926.

  • course-topics
  • social-sharing
  • recommendation

Hi @Phoebe_Zhang1,

Please make sure the initial state is initialized with zeroes. Feel free to DM me your code if you need further assistance.