MCPcopy Create free account
hub / github.com/SooLab/CGFormer / __init__

Method __init__

bert/modeling_bert.py:459–462  ·  view source on GitHub ↗
(self, config)

Source from the content-addressed store, hash-verified

457
458class BertPooler(nn.Module):
459 def __init__(self, config):
460 super().__init__()
461 self.dense = nn.Linear(config.hidden_size, config.hidden_size)
462 self.activation = nn.Tanh()
463
464 def forward(self, hidden_states):
465 # We "pool" the model by simply taking the hidden state corresponding

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected