C5_W4_A1_Decoder(): "Wrong values in outd"

Hi, I am getting “wrong values” for ‘outd’ when I test Decoder():
And of course, triple checked my Decoder() class, and I have not much of a clue as to what’s going wrong.
I think all the indexing are correct ([:,:seq_len,:]), I’m using training = training for dropouts, and the correct sets of query, key, and value at each turn as far as I can see based on instructions.
Any thoughts? Please let me know.

  1. This thread is a duplicate of another post you made.
  2. Please do not post your code on the Forums. That breaks the course Honor Code.

I noticed that some others posted their codes, so I thought it was okay.
I’ve deleted the code snippets for now.
I’ve deleted the other reply; I thought a thread would be better for visibility.