src/transformers/models/conditional_detr/modeling_conditional_detr.py/ConditionalDetrAttention/_v_shape
class ConditionalDetrAttention:    def _v_shape(self, tensor: torch.Tensor, seq_len: int, batch_size: int):
        return tensor.view(batch_size, seq_len, self.num_heads, self.v_head_dim).transpose(1, 2).contiguous()