-
-
Save Juraj-Sulimanovic/a372c5ca2b14ef1e359a62f19056de82 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
output = torch.matmul(scores, values) | |
output = output.transpose(1, 2).contiguous().view(bsz, seqlen, -1) | |
return self.wo(output) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment