class_docstr: See :func:`shifted_window_attention`.
class_docstr_tok: ["See",":","func",":","`","shifted_window_attention","`","."]
code: def __repr__(self) -> str:
      return "{}(embed_dim={}, window_size={}, shift_size={}, num_heads={}, dropout={}, attn_dropout={}, dropout={})".format(
          self.__class__.__name__,
          self.embed_dim,
          self.window_size,
          self.shift_size,
          self.num_heads,
          self.attention_dropout,
          self.dropout,
      )
  
imports: from typing import List, Optional
  import torch
  from torch import Tensor, nn
  from torch.nn import functional
  from cvnets.layers import Dropout, LinearLayer, StochasticDepth, get_normalization_layer
  from cvnets.layers.activation import build_activation_layer
  from cvnets.modules import BaseModule
label_desc: Use image node_id 2 for calling the ShiftedWindowAttention obj's underlying member method code with example usage: obj.__repr__() and returns: str