C5_W4_DecoderLayer_test_A1

I am getting this error how do I solve it,

I used (Q1, enc_output, enc_output, padding_mask, return_attention_scores=True) as inputs for self.mha2 layer.

Regards Utkarsh,
Thank You.

Two ideas:

  • Perhaps your Q1 value is not correct.
  • Did you modify any of the code in the constructor portion of the DecoderLayer()?

Sir, I have personally sent you my code, please go through it…

^this literally made me laugh out loud. Like “bro incoming message, go through it, report back, pronto”

hey, how did you solve this error? I am getting the same error here.