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

Method __init__

bing_bert/nvidia/modeling.py:886–890  ·  view source on GitHub ↗
(self, config, args)

Source from the content-addressed store, hash-verified

884 ```
885 """
886 def __init__(self, config, args):
887 super(BertForPreTraining, self).__init__(config)
888 self.bert = BertModel(config)
889 self.cls = BertPreTrainingHeads(config, self.bert.embeddings.word_embeddings.weight)
890 self.apply(self.init_bert_weights)
891
892 def forward(self, batch, log=True):
893 #input_ids, token_type_ids=None, attention_mask=None, masked_lm_labels=None, next_sentence_label=None, checkpoint_activations=False):

Callers

nothing calls this directly

Calls 4

applyMethod · 0.80
BertModelClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected