class_docstr: Residual attention block for DRL.
class_docstr_tok: ["Residual","attention","block","for","DRL","."]
code: def __init__(self, d_model: int, n_head: int):
      super().__init__()
  
      self.attn = nn.MultiheadAttention(d_model, n_head)
      self.ln_1 = LayerNorm(d_model)
      self.mlp = nn.Sequential(
          OrderedDict(
              [
                  ("c_fc", nn.Linear(d_model, d_model * 4)),
                  ("gelu", QuickGELU()),
                  ("c_proj", nn.Linear(d_model * 4, d_model)),
              ]
          )
      )
      self.ln_2 = LayerNorm(d_model)
      self.n_head = n_head
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import logging
  import torch
  from torch import nn
  from towhee.models.drl.until_module import LayerNorm
  from collections import OrderedDict
label_desc: Use image node_id 1 to create a new ResidualAttentionBlock object from inherited base classes: nn with example: obj = ResidualAttentionBlock(d_model, n_head)