(src, tar)
| 24 | |
| 25 | ## upsample tensor 'src' to have the same spatial size with tensor 'tar' |
| 26 | def _upsample_like(src, tar): |
| 27 | |
| 28 | src = F.interpolate(src, size=tar.shape[2:], mode="bilinear", align_corners=False) |
| 29 | |
| 30 | return src |
| 31 | |
| 32 | |
| 33 | ### RSU-7 ### |