Open
Description
Hi, thank you for your great repository.
I think there is an issue in Line 27-28 in src/blocks/PositionalEncoding.py.
# Sin/Cos transformation for even, odd indices
embeddings[::2] = embeddings[::2].sin()
embeddings[1::2] = embeddings[1::2].cos()
I think it has to be
# Sin/Cos transformation for even, odd indices
embeddings[:, ::2] = embeddings[:, ::2].sin()
embeddings[:, 1::2] = embeddings[:, 1::2].cos()
Metadata
Metadata
Assignees
Labels
No labels