MCPcopy Create free account
hub / github.com/csslc/PiSA-SR / __init__

Method __init__

ram/models/bert.py:363–367  ·  view source on GitHub ↗
(self, config)

Source from the content-addressed store, hash-verified

361
362class BertOutput(nn.Module):
363 def __init__(self, config):
364 super().__init__()
365 self.dense = nn.Linear(config.intermediate_size, config.hidden_size)
366 self.LayerNorm = nn.LayerNorm(config.hidden_size, eps=config.layer_norm_eps)
367 self.dropout = nn.Dropout(config.hidden_dropout_prob)
368
369 def forward(self, hidden_states, input_tensor):
370 hidden_states = self.dense(hidden_states)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected