↓ 3 callersFunctionnchw_to_nlcFlatten [N, C, H, W] shape tensor to [N, L, C] shape tensor. Args: x (Tensor): The input tensor of shape [N, C, H, W] before conversion.
downstream/segmentation/mmseg/models/utils/shape_convert.py:19
↓ 3 callersFunctionsave_checkpoint_ema_new(config, epoch, model, model_ema, max_accuracy, max_accuracy_e, optimizer, lr_scheduler, logger, name=None)
agent_transformer/utils_ema.py:214
↓ 2 callersMethod__init__(
self,
num_classes,
in_channels,
feat_channels=256,
stacked_convs=4,
downstream/detection/mmdet/models/dense_heads/solo_head.py:50
↓ 2 callersMethod__init__(self, dim, num_heads, mlp_ratio=4., qkv_bias=False, drop=0., attn_drop=0.,
drop_path=0., act
agent_transformer/models/agent_deit.py:268
↓ 2 callersMethod__init__(self, dim, num_heads, mlp_ratio=4., qkv_bias=False, drop=0., attn_drop=0.,
drop_path=0., act
agent_transformer/models/deit.py:201