| 77 | |
| 78 | |
| 79 | class Model(torch.nn.Module): |
| 80 | def __init__(self): |
| 81 | super().__init__() |
| 82 | self.linear = torch.nn.Linear(10, 10) |
| 83 | self.layers = torch.nn.ModuleList([Layer() for _ in range(64)]) |
| 84 | |
| 85 | def forward(self, x): |
| 86 | # In regional compilation, the self.linear is outside of the scope of ``torch.compile``. |
| 87 | x = self.linear(x) |
| 88 | for layer in self.layers: |
| 89 | x = layer(x) |
| 90 | return x |
| 91 | |
| 92 | |
| 93 | ################################################################################## |
no outgoing calls
no test coverage detected