↓ 4 callersFunctionnlc_to_nchwConvert [N, L, C] shape tensor to [N, C, H, W] shape tensor. Args: x (Tensor): The input tensor of shape [N, L, C] before conversion.
mmdet/models/layers/transformer/utils.py:19
↓ 3 callersFunction_expand_maskExpands attention_mask from ``[B, L_s]`` to ``[B, 1, L_t, L_s]``. Where ``B`` is batch_size, `L_s`` is the source sequence length, and ``L_t`
mmpretrain/models/multimodal/ofa/ofa_modules.py:87
↓ 3 callersFunctionbbox_cxcyah_to_xyxyConvert bbox coordinates from (cx, cy, ratio, h) to (x1, y1, x2, y2). Args: bbox (Tensor): Shape (n, 4) for bboxes. Returns:
mmdet/structures/bbox/transforms.py:487