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

Method forward

bert/modeling_bert.py:344–348  ·  view source on GitHub ↗
(self, hidden_states, input_tensor)

Source from the content-addressed store, hash-verified

342 self.dropout = nn.Dropout(config.hidden_dropout_prob)
343
344 def forward(self, hidden_states, input_tensor):
345 hidden_states = self.dense(hidden_states)
346 hidden_states = self.dropout(hidden_states)
347 hidden_states = self.LayerNorm(hidden_states + input_tensor)
348 return hidden_states
349
350
351class BertLayer(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected