Course 5 week 4 Transformer. Exercise 4

The instruction are misleading. the True value will return a tuple

  • return_attention_scores : A boolean to indicate whether the output should be attention output if True, or (attention_output, attention_scores) if False. Defaults to False.

Thank you for pointing this out @Styvens, I shall take a look and make appropriate changes if needed.

Best,
Mubsi

Hi @Styvens,

I believe the instructions are about return_attention_scores being a Boolean variable, not about what is returned when it is set to True/False.

Best,
Mubsi