MCPcopy Index your code
hub / github.com/deepspeedai/DeepSpeedExamples / __init__

Method __init__

bing_bert/nvidia/modeling.py:449–453  ·  view source on GitHub ↗
(self, config)

Source from the content-addressed store, hash-verified

447
448class BertLayer(nn.Module):
449 def __init__(self, config):
450 super(BertLayer, self).__init__()
451 self.attention = BertAttention(config)
452 self.intermediate = BertIntermediate(config)
453 self.output = BertOutput(config)
454
455 def forward(self, hidden_states, attention_mask):
456 attention_output = self.attention(hidden_states, attention_mask)

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.70
BertIntermediateClass · 0.70
BertOutputClass · 0.70

Tested by

no test coverage detected