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

Implementation of Attention module in Transformer #12

Open
LeCongThuong opened this issue Nov 14, 2021 · 1 comment
Open

Implementation of Attention module in Transformer #12

LeCongThuong opened this issue Nov 14, 2021 · 1 comment

Comments

@LeCongThuong
Copy link

LeCongThuong commented Nov 14, 2021

Thank you for sharing your work, it has actually been helping me a lot.
I have a problem with your code relating Attention module of Transformer. May I be wrong that the Attention module should have dropout layer after softmax function (link). For example, link or link, they used dropout layer in Attention module.

@isCopyman
Copy link

What you mentioned is indeed a common practice

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

No branches or pull requests

2 participants