MCPcopy Create free account
hub / github.com/ChinaYi/ASFormer / forward

Method forward

model.py:248–249  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

246# self.register_buffer('pe', pe)
247
248 def forward(self, x):
249 return x + self.pe[:, :, 0:x.shape[2]]
250
251class Encoder(nn.Module):
252 def __init__(self, num_layers, r1, r2, num_f_maps, input_dim, num_classes, channel_masking_rate, att_type, alpha):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected