MCPcopy Create free account
hub / github.com/TencentARC/InstantMesh / __init__

Method __init__

src/models/encoder/dino.py:358–362  ·  view source on GitHub ↗
(self, config: ViTConfig)

Source from the content-addressed store, hash-verified

356
357class ViTEncoder(nn.Module):
358 def __init__(self, config: ViTConfig) -> None:
359 super().__init__()
360 self.config = config
361 self.layer = nn.ModuleList([ViTLayer(config) for _ in range(config.num_hidden_layers)])
362 self.gradient_checkpointing = False
363
364 def forward(
365 self,

Callers

nothing calls this directly

Calls 2

ViTLayerClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected