Feature map down-sampling.
(self, x, factor: float, size: Tuple[int, int])
| 268 | return self.interpolate(x, scale_factor=factor, size=size) |
| 269 | |
| 270 | def downsample(self, x, factor: float, size: Tuple[int, int]): |
| 271 | """ Feature map down-sampling. """ |
| 272 | return self.interpolate(x, scale_factor=1.0/factor, size=size) |
| 273 | |
| 274 | def interpolate(self, x, scale_factor: float, size: Tuple[int, int]): |
| 275 | """ Feature map interpolation. """ |
no test coverage detected