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

Method __init__

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

Source from the content-addressed store, hash-verified

433
434class BertOutput(nn.Module):
435 def __init__(self, config):
436 super(BertOutput, self).__init__()
437 self.dense = nn.Linear(config.intermediate_size, config.hidden_size)
438 self.LayerNorm = BertLayerNorm(config.hidden_size, eps=1e-12)
439 self.dropout = nn.Dropout(config.hidden_dropout_prob)
440
441 def forward(self, hidden_states, input_tensor):
442 hidden_states = self.dense(hidden_states)

Callers

nothing calls this directly

Calls 2

BertLayerNormClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected