(
spatial_dims: int, in_channels: int, upsample_mode: UpsampleMode | str = "nontrainable", scale_factor: int = 2
)
| 28 | |
| 29 | |
| 30 | def get_upsample_layer( |
| 31 | spatial_dims: int, in_channels: int, upsample_mode: UpsampleMode | str = "nontrainable", scale_factor: int = 2 |
| 32 | ): |
| 33 | return UpSample( |
| 34 | spatial_dims=spatial_dims, |
| 35 | in_channels=in_channels, |
| 36 | out_channels=in_channels, |
| 37 | scale_factor=scale_factor, |
| 38 | mode=upsample_mode, |
| 39 | interp_mode=InterpolateMode.LINEAR, |
| 40 | align_corners=False, |
| 41 | ) |
| 42 | |
| 43 | |
| 44 | class ResBlock(nn.Module): |
no test coverage detected
searching dependent graphs…