(self, hidden_states, input_tensor)
| 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) |
| 371 | hidden_states = self.dropout(hidden_states) |
| 372 | hidden_states = self.LayerNorm(hidden_states + input_tensor) |
| 373 | return hidden_states |
| 374 | |
| 375 | |
| 376 | class BertLayer(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected