(self, config)
| 522 | |
| 523 | class BertPooler(nn.Module): |
| 524 | def __init__(self, config): |
| 525 | super(BertPooler, self).__init__() |
| 526 | self.dense_act = LinearActivation(config.hidden_size, config.hidden_size, act="tanh") |
| 527 | |
| 528 | def forward(self, hidden_states): |
| 529 | # We "pool" the model by simply taking the hidden state corresponding |
nothing calls this directly
no test coverage detected