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

Method forward

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

Source from the content-addressed store, hash-verified

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)
275 hidden_states = self.dropout(hidden_states)
276 hidden_states = self.LayerNorm(hidden_states + input_tensor)
277 return hidden_states
278
279
280class BertAttention(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected