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

Method __init__

modules/VIPTRv2.py:556–561  ·  view source on GitHub ↗
(self, dim, out_dim, norm_layer=nn.LayerNorm)

Source from the content-addressed store, hash-verified

554 """
555
556 def __init__(self, dim, out_dim, norm_layer=nn.LayerNorm):
557 super().__init__()
558 self.dim = dim
559 self.reduction = nn.Conv2d(dim, out_dim, 3, (2, 1), 1)
560 # self.norm = nn.BatchNorm2d(out_dim)
561 self.norm = nn.LayerNorm(out_dim)
562
563 def forward(self, x):
564 '''

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected