MCPcopy Create free account
hub / github.com/lingeringlight/START / __init__

Method __init__

models/vmamba.py:196–200  ·  view source on GitHub ↗
(self, dim, norm_layer=nn.LayerNorm)

Source from the content-addressed store, hash-verified

194 """
195
196 def __init__(self, dim, norm_layer=nn.LayerNorm):
197 super().__init__()
198 self.dim = dim
199 self.reduction = nn.Linear(4 * dim, 2 * dim, bias=False)
200 self.norm = norm_layer(4 * dim)
201
202 def forward(self, x):
203 B, H, W, C = x.shape

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected