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

Method __init__

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

Source from the content-addressed store, hash-verified

423
424class BertIntermediate(nn.Module):
425 def __init__(self, config):
426 super(BertIntermediate, self).__init__()
427 self.dense_act = LinearActivation(config.hidden_size, config.intermediate_size, act=config.hidden_act)
428
429 def forward(self, hidden_states):
430 hidden_states = self.dense_act(hidden_states)

Callers

nothing calls this directly

Calls 2

LinearActivationClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected