MCPcopy Create free account
hub / github.com/THUDM/GLM / __init__

Method __init__

model/modeling_bert.py:663–665  ·  view source on GitHub ↗
(self, config)

Source from the content-addressed store, hash-verified

661
662class BertOnlyNSPHead(nn.Module):
663 def __init__(self, config):
664 super(BertOnlyNSPHead, self).__init__()
665 self.seq_relationship = nn.Linear(config.hidden_size, 2)
666
667 def forward(self, pooled_output):
668 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