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

Method __init__

modules/VIPTRv2T_ch.py:497–502  ·  view source on GitHub ↗
(self, dim, out_dim, norm_layer=nn.LayerNorm)

Source from the content-addressed store, hash-verified

495 """
496
497 def __init__(self, dim, out_dim, norm_layer=nn.LayerNorm):
498 super().__init__()
499 self.dim = dim
500 self.reduction = nn.Conv2d(dim, out_dim, 3, (2, 1), 1)
501 # self.norm = nn.BatchNorm2d(out_dim)
502 self.norm = nn.LayerNorm(out_dim)
503
504 def forward(self, x):
505 '''

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected