Error in C4W2- Exercise 2

im getting an error in C4W2- Exercise 2 in the decoder_layer
can someone please help me with it?

The is saying to you something, can you check if you are passing the padding mask?

Your checking points, for Block 2, make sure you have used layer normalization code from block 1 with encoder output used twice, padding mask and return_attention_score to be recalled True. (You might have also mention training which you are not suppose to for block 2 as per instructions)

If the above is recalled correctly. then for the ffn output where you apply dropout layer, here you need to mention training=training. This code is after normalization layer 2.

Then for final out(normalization layer 3, you are suppose to use ffn_output and block2 mult_attn_out2

Regards
DP