(self, *input, **kwargs)
| 14 | |
| 15 | class mySequential(nn.Sequential): |
| 16 | def forward(self, *input, **kwargs): |
| 17 | for module in self._modules.values(): |
| 18 | if type(input) == tuple: |
| 19 | input = module(*input) |
| 20 | else: |
| 21 | input = module(input) |
| 22 | return input |
| 23 | |
| 24 | def replace_layer(model: nn.Module, target: nn.Module, replacement: nn.Module): |
| 25 | """ |