MCPcopy Create free account
hub / github.com/VincentHancoder/SSGD / interpolate_as

Function interpolate_as

mmdet/models/utils/misc.py:35–72  ·  view source on GitHub ↗

Interpolate the `source` to the shape of the `target`. The `source` must be a Tensor, but the `target` can be a Tensor or a np.ndarray with the shape (..., target_h, target_w). Args: source (Tensor): A 3D/4D Tensor with the shape (N, H, W) or (N, C, H, W). t

(source, target, mode='bilinear', align_corners=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

test_interpolate_asFunction · 0.90
lossMethod · 0.85

Calls 1

_interpolate_asFunction · 0.85

Tested by 1

test_interpolate_asFunction · 0.72