MCPcopy Create free account
hub / github.com/BorealisAI/scaleformer / __init__

Method __init__

layers/AutoCorrelation.py:35–41  ·  view source on GitHub ↗
(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 """

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected