(start, end)
| 543 | all_encoder_layers = [] |
| 544 | |
| 545 | def custom(start, end): |
| 546 | def custom_forward(*inputs): |
| 547 | layers = self.layer[start:end] |
| 548 | x_ = inputs[0] |
| 549 | for layer in layers: |
| 550 | x_ = layer(x_, inputs[1]) |
| 551 | return x_ |
| 552 | |
| 553 | return custom_forward |
| 554 | |
| 555 | if checkpoint_activations: |
| 556 | l = 0 |
nothing calls this directly
no outgoing calls
no test coverage detected