(self, hidden_states, input_tensor)
| 363 | self.dropout = nn.Dropout(config.hidden_dropout_prob) |
| 364 | |
| 365 | def forward(self, hidden_states, input_tensor): |
| 366 | hidden_states = self.dense(hidden_states) |
| 367 | hidden_states = self.dropout(hidden_states) |
| 368 | hidden_states = self.LayerNorm(hidden_states + input_tensor) |
| 369 | return hidden_states |
| 370 | |
| 371 | |
| 372 | class BertLayer(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected