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

Method __init__

semantic_sam/backbone/swin.py:316–320  ·  view source on GitHub ↗
(self, dim, norm_layer=nn.LayerNorm)

Source from the content-addressed store, hash-verified

314 """
315
316 def __init__(self, dim, norm_layer=nn.LayerNorm):
317 super().__init__()
318 self.dim = dim
319 self.reduction = nn.Linear(4 * dim, 2 * dim, bias=False)
320 self.norm = norm_layer(4 * dim)
321
322 def forward(self, x, H, W):
323 """Forward function.

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected