(x)
| 29 | """ |
| 30 | |
| 31 | def up(x): |
| 32 | linear_mode = [InterpolateMode.LINEAR, InterpolateMode.BILINEAR, InterpolateMode.TRILINEAR] |
| 33 | interp_mode = linear_mode[len(spatial_size) - 1] |
| 34 | smode = str(interp_mode.value) |
| 35 | return F.interpolate(x, size=spatial_size, mode=smode, align_corners=align_corners) # type: ignore |
| 36 | |
| 37 | return up |
no outgoing calls