Method
__init__
(self, mask_flag=True, factor=1, scale=None, attention_dropout=0.1, output_attention=False)
Source from the content-addressed store, hash-verified
| 33 | This block can replace the self-attention family mechanism seamlessly. |
| 34 | """ |
| 35 | def __init__(self, mask_flag=True, factor=1, scale=None, attention_dropout=0.1, output_attention=False): |
| 36 | super(AutoCorrelation, self).__init__() |
| 37 | self.factor = factor |
| 38 | self.scale = scale |
| 39 | self.mask_flag = mask_flag |
| 40 | self.output_attention = output_attention |
| 41 | self.dropout = nn.Dropout(attention_dropout) |
| 42 | |
| 43 | def time_delay_agg_training(self, values, corr): |
| 44 | """ |
Tested by
no test coverage detected