(self, x, hw_shape)
| 449 | self.downsample = downsample |
| 450 | |
| 451 | def forward(self, x, hw_shape): |
| 452 | for block in self.blocks: |
| 453 | x = block(x, hw_shape) |
| 454 | |
| 455 | if self.downsample: |
| 456 | x_down, down_hw_shape = self.downsample(x, hw_shape) |
| 457 | return x_down, down_hw_shape, x, hw_shape |
| 458 | else: |
| 459 | return x, hw_shape, x, hw_shape |
| 460 | |
| 461 | |
| 462 | @BACKBONES.register_module() |
nothing calls this directly
no outgoing calls
no test coverage detected