(self, x)
| 95 | self.use_add = shortcut and in_channels == out_channels |
| 96 | |
| 97 | def forward(self, x): |
| 98 | y = self.conv2(self.conv1(x)) |
| 99 | if self.use_add: |
| 100 | y = y + x |
| 101 | return y |
| 102 | |
| 103 | |
| 104 | class ResLayer(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected