MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / __init__

Method __init__

tests/unit/modeling.py:342–348  ·  view source on GitHub ↗
(self, config, weights, biases)

Source from the content-addressed store, hash-verified

340class BertIntermediate(nn.Module):
341
342 def __init__(self, config, weights, biases):
343 super(BertIntermediate, self).__init__()
344 self.dense_act = LinearActivation(config.hidden_size,
345 config.intermediate_size,
346 weights,
347 biases,
348 act=config.hidden_act)
349
350 def forward(self, hidden_states):
351 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