MCPcopy
hub / github.com/deepspeedai/DeepSpeedExamples / __init__

Method __init__

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

Source from the content-addressed store, hash-verified

795 ```
796 """
797 def __init__(self, config):
798 super(BertModel, self).__init__(config)
799 self.embeddings = BertEmbeddings(config)
800 self.encoder = BertEncoder(config)
801 self.pooler = BertPooler(config)
802 self.apply(self.init_bert_weights)
803
804 def forward(self, input_ids, token_type_ids=None, attention_mask=None, output_all_encoded_layers=True, checkpoint_activations=False):
805 if attention_mask is None:

Callers

nothing calls this directly

Calls 5

applyMethod · 0.80
BertEmbeddingsClass · 0.70
BertEncoderClass · 0.70
BertPoolerClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected