(self, x)
| 35 | self.is_downsample = True |
| 36 | |
| 37 | def forward(self, x): |
| 38 | y = self.conv1(x) |
| 39 | y = self.bn1(y) |
| 40 | y = self.relu(y) |
| 41 | y = self.conv2(y) |
| 42 | y = self.bn2(y) |
| 43 | if self.is_downsample: |
| 44 | x = self.downsample(x) |
| 45 | return F.relu(x.add(y), True) |
| 46 | |
| 47 | |
| 48 | def make_layers(c_in, c_out, repeat_times, is_downsample=False): |
nothing calls this directly
no outgoing calls
no test coverage detected