forked from mindspore/mindspore
Update attn.py
This commit is contained in:
parent
26b51412c9
commit
ab462cb07d
|
|
@ -31,4 +31,6 @@ class FullAttention(nn.Cell):
|
|||
if self.output_attention:
|
||||
return V, A
|
||||
else:
|
||||
return V, None
|
||||
return V, None
|
||||
|
||||
class ProbAttention(nn.Cell):
|
||||
Loading…
Reference in New Issue