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

Method __init__

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

Source from the content-addressed store, hash-verified

519
520class BertOnlyNSPHead(nn.Module):
521 def __init__(self, config):
522 super().__init__()
523 self.seq_relationship = nn.Linear(config.hidden_size, 2)
524
525 def forward(self, pooled_output):
526 seq_relationship_score = self.seq_relationship(pooled_output)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected