Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/multi head attention #171

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Clyde21c
Copy link

@Clyde21c Clyde21c commented Jul 17, 2023

In the MetaMultiheadAttention class, for a batch_first case, the code corresponding to pre-transpose is missing. Additionally, as the batch_first argument has been used in nn.MultiHeadAttention from PyTorch 1.9, I updated the README.md accordingly.

Refrerence

PyTorch 1.9
PyTorch 2.0

@Clyde21c
Copy link
Author

Clyde21c commented Jul 18, 2023

BTW, I sincerely appreciate you for releasing this repository. I published a book about Meta-learning in Korea and utilized the Torchmeta library for the example code for the book.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant