(self, i, config, weights, biases)
| 372 | class BertLayer(nn.Module): |
| 373 | |
| 374 | def __init__(self, i, config, weights, biases): |
| 375 | super(BertLayer, self).__init__() |
| 376 | self.attention = BertAttention(i, config, weights, biases) |
| 377 | self.intermediate = BertIntermediate(config, weights, biases) |
| 378 | self.output = BertOutput(config, weights, biases) |
| 379 | self.weight = weights |
| 380 | self.biases = biases |
| 381 | |
| 382 | def forward(self, hidden_states, attention_mask, grads, collect_all_grads=False): |
| 383 | attention_output = self.attention(hidden_states, attention_mask) |
nothing calls this directly
no test coverage detected