MCPcopy Create free account
hub / github.com/SwinTransformer/Transformer-SSL / __init__

Method __init__

models/swin_transformer.py:307–312  ·  view source on GitHub ↗
(self, input_resolution, dim, norm_layer=nn.LayerNorm)

Source from the content-addressed store, hash-verified

305 """
306
307 def __init__(self, input_resolution, dim, norm_layer=nn.LayerNorm):
308 super().__init__()
309 self.input_resolution = input_resolution
310 self.dim = dim
311 self.reduction = nn.Linear(4 * dim, 2 * dim, bias=False)
312 self.norm = norm_layer(4 * dim)
313
314 def forward(self, x):
315 """

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected