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

Method forward

modules/VIPTRv2.py:397–400  ·  view source on GitHub ↗
(self, x, size=None)

Source from the content-addressed store, hash-verified

395 self.prenorm = prenorm
396
397 def forward(self, x, size=None):
398 x = x + self.drop_path(self.mixer(self.norm1(x)))
399 x = x + self.drop_path(self.mlp(self.norm2(x)))
400 return x
401
402class OSRA_Attention(nn.Module): ### OSRA
403 def __init__(self, dim,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected