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

Method __init__

layers/MultiWaveletCorrelation.py:224–230  ·  view source on GitHub ↗
(self, in_channels, out_channels, modes=16, activation='tanh')

Source from the content-addressed store, hash-verified

222
223class FourierCrossAttentionW(nn.Module):
224 def __init__(self, in_channels, out_channels, modes=16, activation='tanh'):
225 super(FourierCrossAttentionW, self).__init__()
226 print('corss fourier correlation used!')
227 self.in_channels = in_channels
228 self.out_channels = out_channels
229 self.modes1 = modes
230 self.activation = activation
231
232 def forward(self, q, k, v, mask):
233 B, L, E, H = q.shape

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected