-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Some doubts about SublayerConnection #100
Comments
Where do we write |
In |
I have the same question as you. The explanation can be found in #92 . |
Maybe it's best to mention this issue in the notebook, because it causes confusion for many. |
|
So, close as duplicate of #92? |
According to what you wrote:
“That is, the output of each sub-layer is $\mathrm{LayerNorm}(x + \mathrm{Sublayer}(x))$, where $\mathrm{Sublayer}(x)$ is the function implemented by the sub-layer itself. We apply dropout (cite) to the output of each sub-layer, before it is added to the sub-layer input and normalized.”
I think the rentun value should be
self.norm(x + self.dropout(sublayer(x)))
rather thanx + self.dropout(sublayer(self.norm(x)))
.Look forward to your reply.
The text was updated successfully, but these errors were encountered: