Browse Source

Update attn.py

main
BBing 2 years ago
parent
commit
e823b31040
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/attn.py

+ 1
- 1
models/attn.py View File

@@ -4,7 +4,7 @@ import mindspore.ops as ops
from mindspore import Tensor from mindspore import Tensor
from mindspore.common import dtype as mstype from mindspore.common import dtype as mstype


1
class FullAttention(nn.Module): class FullAttention(nn.Module):
def __init__(self, mask_flag=True, factor=5, scale=None, attention_dropout=0.1, output_attention=False): def __init__(self, mask_flag=True, factor=5, scale=None, attention_dropout=0.1, output_attention=False):
super(FullAttention, self).__init__() super(FullAttention, self).__init__()


Loading…
Cancel
Save