As in the subject line, my implementation of the decoder passed all tests for exercise 3, but the line with positional encoding causes an error in Transformer in exercise 4.
Any help will be very much appreciated, I have no clue what might have gone wrong.
Could someone please try to help? It’s really frustrating, I’ve been stuck with the issue and don’t have a clue why the decoder worked in the tests but fails in another exercise… I’d be really grateful for any hint.