MCPcopy Create free account
hub / github.com/BeastyZ/ConvSearch-R1 / __init__

Method __init__

src/eval/models.py:16–21  ·  view source on GitHub ↗
(self, config)

Source from the content-addressed store, hash-verified

14 # self.pooler_output = pooler_output
15
16 def __init__(self, config):
17 RobertaForSequenceClassification.__init__(self, config)
18 self.embeddingHead = nn.Linear(config.hidden_size, 768)
19 self.norm = nn.LayerNorm(768)
20 self.apply(self._init_weights)
21 self.use_mean = False
22
23 def _init_weights(self, module):
24 """ Initialize the weights """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected