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

Method __init__

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

Source from the content-addressed store, hash-verified

400class BertIntermediate(nn.Module):
401
402 def __init__(self, config, weights, biases):
403 super(BertIntermediate, self).__init__()
404 self.dense_act = LinearActivation(config.hidden_size,
405 config.intermediate_size,
406 weights,
407 biases,
408 act=config.hidden_act)
409
410 def forward(self, hidden_states):
411 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