| 252 | return self.l2(self.l1(x)) |
| 253 | |
| 254 | class Bar(torch.nn.Module): |
| 255 | def __init__(self): |
| 256 | super().__init__() |
| 257 | self.abc = Foo() |
| 258 | self.xyz = torch.nn.Linear(4, 4) |
| 259 | |
| 260 | def forward(self, x): |
| 261 | return self.xyz(self.abc(x)) |
| 262 | |
| 263 | mod = Bar() |
| 264 | inp = torch.randn(4, 4) |
no outgoing calls
no test coverage detected