Course 5 week 4 Encoder class

In the encoder class, this line:
Add the position encoding to embedding:
x += self.pos_encoding
gave a dimension mismatch error.
How to resolve this?

Thanks,

Chris

1 Like

Never mind, it is resolved.

Thanks,

Chris