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

Method __init__

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

Source from the content-addressed store, hash-verified

350
351class BertLayer(nn.Module):
352 def __init__(self, config):
353 super().__init__()
354 self.attention = BertAttention(config)
355 self.is_decoder = config.is_decoder
356 if self.is_decoder:
357 self.crossattention = BertAttention(config)
358 self.intermediate = BertIntermediate(config)
359 self.output = BertOutput(config)
360
361 def forward(
362 self,

Callers 15

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 3

BertAttentionClass · 0.85
BertIntermediateClass · 0.85
BertOutputClass · 0.85

Tested by

no test coverage detected