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

Method __init__

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

Source from the content-addressed store, hash-verified

991 """
992
993 def __init__(self, config):
994 super().__init__()
995 self.start_n_top = config.start_n_top
996 self.end_n_top = config.end_n_top
997
998 self.start_logits = PoolerStartLogits(config)
999 self.end_logits = PoolerEndLogits(config)
1000 self.answer_class = PoolerAnswerClass(config)
1001
1002 def forward(
1003 self, hidden_states, start_positions=None, end_positions=None, cls_index=None, is_impossible=None, p_mask=None,

Callers

nothing calls this directly

Calls 4

PoolerStartLogitsClass · 0.85
PoolerEndLogitsClass · 0.85
PoolerAnswerClassClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected