MCPcopy Create free account
hub / github.com/SooLab/CGFormer / __init__

Method __init__

bert/modeling_bert.py:267–271  ·  view source on GitHub ↗
(self, config)

Source from the content-addressed store, hash-verified

265
266class BertSelfOutput(nn.Module):
267 def __init__(self, config):
268 super().__init__()
269 self.dense = nn.Linear(config.hidden_size, config.hidden_size)
270 self.LayerNorm = BertLayerNorm(config.hidden_size, eps=config.layer_norm_eps)
271 self.dropout = nn.Dropout(config.hidden_dropout_prob)
272
273 def forward(self, hidden_states, input_tensor):
274 hidden_states = self.dense(hidden_states)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected