(self, config)
| 25 | |
| 26 | class 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 """ |
nothing calls this directly
no outgoing calls
no test coverage detected