(self, config: FlexBertConfig)
| 673 | """ |
| 674 | |
| 675 | def __init__(self, config: FlexBertConfig): |
| 676 | super().__init__() |
| 677 | self.layers = nn.ModuleList([get_bert_layer(config, layer_id=i) for i in range(config.num_hidden_layers)]) |
| 678 | self.num_attention_heads = config.num_attention_heads |
| 679 | |
| 680 | def forward(self, hidden_states: torch.Tensor, attention_mask: torch.Tensor, **kwargs) -> torch.Tensor: |
| 681 | for layer_module in self.layers: |
nothing calls this directly
no test coverage detected