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

Function flip_tensor

mmdet/core/utils/misc.py:65–85  ·  view source on GitHub ↗

flip tensor base on flip_direction. Args: src_tensor (Tensor): input feature map, shape (B, C, H, W). flip_direction (str): The flipping direction. Options are 'horizontal', 'vertical', 'diagonal'. Returns: out_tensor (Tensor): Flipped tensor.

(src_tensor, flip_direction)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

test_flip_tensorFunction · 0.90
aug_testMethod · 0.85

Calls 1

flipMethod · 0.45

Tested by 1

test_flip_tensorFunction · 0.72