MCPcopy Create free account
hub / github.com/UX-Decoder/Semantic-SAM / __init__

Method __init__

semantic_sam/backbone/swin_new.py:305–309  ·  view source on GitHub ↗
(self, dim, norm_layer=nn.LayerNorm)

Source from the content-addressed store, hash-verified

303 """
304
305 def __init__(self, dim, norm_layer=nn.LayerNorm):
306 super().__init__()
307 self.dim = dim
308 self.reduction = nn.Linear(4 * dim, 2 * dim, bias=False)
309 self.norm = norm_layer(4 * dim)
310
311 def forward(self, x, H, W):
312 """Forward function.

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected