(self, hidden_states, input_tensor)
| 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 | |
| 351 | class BertLayer(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected