Week 4 - Encoder error - Incompatible shapes: [2,3,4] vs. [1,5,4] [Op:AddV2])

Screenshot 2023-01-30 at 17.14.12
The instruction said to include [:, :seq_len, :], although it would’ve been more clear if the text was formatted as self.pos_encoding[:, :seq_len, :] instead.

2 Likes