MCPcopy Create free account
hub / github.com/buaacxf/VIPTR / forward

Method forward

modules/VIPTRv1.py:406–409  ·  view source on GitHub ↗
(self, x, size=None)

Source from the content-addressed store, hash-verified

404 self.prenorm = prenorm
405
406 def forward(self, x, size=None):
407 x = x + self.drop_path(self.mixer(self.norm1(x)))
408 x = x + self.drop_path(self.mlp(self.norm2(x)))
409 return x
410
411
412class OSRA_Attention(nn.Module): ### OSRA

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected