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

Method __init__

bert/modeling_utils.py:837–839  ·  view source on GitHub ↗
(self, config)

Source from the content-addressed store, hash-verified

835 """ Compute SQuAD start_logits from sequence hidden states. """
836
837 def __init__(self, config):
838 super().__init__()
839 self.dense = nn.Linear(config.hidden_size, 1)
840
841 def forward(self, hidden_states, p_mask=None):
842 """ Args:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected