(self, x)
| 247 | return self.num_inchannels |
| 248 | |
| 249 | def forward(self, x): |
| 250 | if self.num_branches == 1: |
| 251 | return [self.branches[0](x[0])] |
| 252 | |
| 253 | for i in range(self.num_branches): |
| 254 | x[i] = self.branches[i](x[i]) |
| 255 | |
| 256 | x_fuse = [] |
| 257 | |
| 258 | for i in range(len(self.fuse_layers)): |
| 259 | y = x[0] if i == 0 else self.fuse_layers[i][0](x[0]) |
| 260 | for j in range(1, self.num_branches): |
| 261 | if i == j: |
| 262 | y = y + x[j] |
| 263 | else: |
| 264 | y = y + self.fuse_layers[i][j](x[j]) |
| 265 | x_fuse.append(self.relu(y)) |
| 266 | |
| 267 | return x_fuse |
| 268 | |
| 269 | |
| 270 | blocks_dict = { |
nothing calls this directly
no outgoing calls
no test coverage detected