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

Method __init__

src/retrieval/server.py:27–32  ·  view source on GitHub ↗
(self, config)

Source from the content-addressed store, hash-verified

25
26class ANCE(RobertaForSequenceClassification):
27 def __init__(self, config):
28 RobertaForSequenceClassification.__init__(self, config)
29 self.embeddingHead = nn.Linear(config.hidden_size, 768)
30 self.norm = nn.LayerNorm(768)
31 self.apply(self._init_weights)
32 self.use_mean = False
33
34 def _init_weights(self, module):
35 """ Initialize the weights """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected