(self, x)
| 234 | return self.num_inchannels |
| 235 | |
| 236 | def forward(self, x): |
| 237 | if self.num_branches == 1: |
| 238 | return [self.branches[0](x[0])] |
| 239 | |
| 240 | for i in range(self.num_branches): |
| 241 | x[i] = self.branches[i](x[i]) |
| 242 | |
| 243 | x_fuse = [] |
| 244 | |
| 245 | for i in range(len(self.fuse_layers)): |
| 246 | y = x[0] if i == 0 else self.fuse_layers[i][0](x[0]) |
| 247 | for j in range(1, self.num_branches): |
| 248 | if i == j: |
| 249 | y = y + x[j] |
| 250 | else: |
| 251 | y = y + self.fuse_layers[i][j](x[j]) |
| 252 | x_fuse.append(self.relu(y)) |
| 253 | |
| 254 | return x_fuse |
| 255 | |
| 256 | |
| 257 | blocks_dict = { |
nothing calls this directly
no outgoing calls
no test coverage detected