(self)
| 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``. |