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

Method __init__

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

Source from the content-addressed store, hash-verified

460
461class BertEncoder(nn.Module):
462 def __init__(self, config):
463 super(BertEncoder, self).__init__()
464 layer = BertLayer(config)
465 self.layer = nn.ModuleList([copy.deepcopy(layer) for _ in range(config.num_hidden_layers)])
466
467 # def forward(self, hidden_states, attention_mask, output_all_encoded_layers=True):
468 # all_encoder_layers = []

Callers

nothing calls this directly

Calls 2

BertLayerClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected