MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / __init__

Method __init__

PATH/core/models/backbones/vit.py:354–356  ·  view source on GitHub ↗
(self, embed_dim)

Source from the content-addressed store, hash-verified

352
353class Norm2d(nn.Module):
354 def __init__(self, embed_dim):
355 super().__init__()
356 self.ln = nn.LayerNorm(embed_dim, eps=1e-6)
357
358 def forward(self, x):
359 x = x.permute(0, 2, 3, 1)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected