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

Question regarding residual connection module : x + self.dropout(sublayer(self.norm(x))) #1

Open
ssvision opened this issue Feb 16, 2024 · 0 comments

Comments

@ssvision
Copy link

from the Vaswani et al. paper as highlighted ,
Screenshot from 2024-02-16 21-39-52

Q : the paper says LayerNorm(x + sublayer(x)) but why are we doing x + LayerNorm(sublayer(x)). i understood why we are doing sublayer(LayerNorm(x)) instead of LayerNorm(sublayer(x)) as it helps in better training as per certain papers. But my main question is why is "x + ..." part not included in LayerNorm?

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

1 participant