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

Method forward

layers/Embed.py:160–162  ·  view source on GitHub ↗
(self, x, x_mark)

Source from the content-addressed store, hash-verified

158 self.dropout = nn.Dropout(p=dropout)
159
160 def forward(self, x, x_mark):
161 x = self.value_embedding(x) + self.temporal_embedding(x_mark) + self.position_embedding(x)
162 return self.dropout(x)
163
164class DataEmbedding_mine(nn.Module):
165 def __init__(self, c_in, d_model, embed_type='fixed', freq='h', dropout=0.1, is_decoder=False):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected