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

Method __init__

index/dense/models.py:21–26  ·  view source on GitHub ↗
(self, config)

Source from the content-addressed store, hash-verified

19 # self.pooler_output = pooler_output
20
21 def __init__(self, config):
22 RobertaForSequenceClassification.__init__(self, config)
23 self.embeddingHead = nn.Linear(config.hidden_size, 768) # ANCE has
24 self.norm = nn.LayerNorm(768)
25 self.apply(self._init_weights)
26 self.use_mean = False
27
28 def _init_weights(self, module):
29 """ Initialize the weights """

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected