↓ 6 callersMethod__init__(
self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.0
)
detectron2/detectron2/modeling/backbone/swin.py:29
↓ 6 callersFunctionwindow_partition Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
detectron2/detectron2/modeling/backbone/swin.py:49
↓ 5 callersFunctionpermute_to_N_HWA_K Transpose/reshape a tensor from (N, (Ai x K), H, W) to (N, (HxWxAi), K)
detectron2/detectron2/modeling/meta_arch/dense_detector.py:15