Skip to content
Snippets Groups Projects
Commit 407a44a5 authored by duzx16's avatar duzx16
Browse files

Fix return values for SelfAttention

parent 0d2385f3
No related branches found
No related tags found
No related merge requests found
......@@ -158,7 +158,7 @@ class SelfAttention(torch.nn.Module):
if self.training:
output = self.output_dropout(output)
return output, None
return output
class CrossAttention(torch.nn.Module):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment