We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It seems that the function defined here needs to be modified as follows:
def forward(self, q, k, v, mask=None): bs = k.shape[0] k = k.view(bs, -1, self.head, self.d_k) q = F.relu(self.q_linear(q).view(bs, self.head, self.d_k)) ...
Please help check this. BTW, thanks for sharing this implementation.
The text was updated successfully, but these errors were encountered:
Oh, yes, I have no idea how did I miss this. Very Very sorry about this. Yes, you are correct. self. needs to be added there
Sorry, something went wrong.
No branches or pull requests
It seems that the function defined here needs to be modified as follows:
Please help check this.
BTW, thanks for sharing this implementation.
The text was updated successfully, but these errors were encountered: