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

Method __init__

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

Source from the content-addressed store, hash-verified

522
523class BertPooler(nn.Module):
524 def __init__(self, config):
525 super(BertPooler, self).__init__()
526 self.dense_act = LinearActivation(config.hidden_size, config.hidden_size, act="tanh")
527
528 def forward(self, hidden_states):
529 # We "pool" the model by simply taking the hidden state corresponding

Callers

nothing calls this directly

Calls 2

LinearActivationClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected