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

Method __init__

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

Source from the content-addressed store, hash-verified

279
280class BertAttention(nn.Module):
281 def __init__(self, config):
282 super().__init__()
283 self.self = BertSelfAttention(config)
284 self.output = BertSelfOutput(config)
285 self.pruned_heads = set()
286
287 def prune_heads(self, heads):
288 if len(heads) == 0:

Callers

nothing calls this directly

Calls 3

BertSelfAttentionClass · 0.85
BertSelfOutputClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected