(self, x)
| 498 | ) |
| 499 | |
| 500 | def forward(self, x): |
| 501 | for layer in self.layers: |
| 502 | x = torch.utils.checkpoint.checkpoint(layer, x, use_reentrant=False) |
| 503 | return x |
| 504 | |
| 505 | net = CheckpointedNet().to(device) |
| 506 |
nothing calls this directly
no outgoing calls
no test coverage detected