MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / __init__

Method __init__

SwissArmyTransformer/sat/model/official/vit_model.py:96–98  ·  view source on GitHub ↗
(self, hidden_size, num_classes)

Source from the content-addressed store, hash-verified

94
95class ClsMixin(BaseMixin):
96 def __init__(self, hidden_size, num_classes):
97 super().__init__()
98 self.classifier = nn.Linear(hidden_size, num_classes)
99
100 def final_forward(self, logits, **kw_args):
101 logits = self.classifier(logits[:, 0])

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected