MCPcopy Create free account
hub / github.com/DSL-Lab/StreamSplat / __init__

Method __init__

encoders/dinov2/hub/classifiers.py:53–57  ·  view source on GitHub ↗
(self, *, backbone: nn.Module, linear_head: nn.Module, layers: int = 4)

Source from the content-addressed store, hash-verified

51
52class _LinearClassifierWrapper(nn.Module):
53 def __init__(self, *, backbone: nn.Module, linear_head: nn.Module, layers: int = 4):
54 super().__init__()
55 self.backbone = backbone
56 self.linear_head = linear_head
57 self.layers = layers
58
59 def forward(self, x):
60 if self.layers == 1:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected