code: def __init__(self, first_token, key_to_value, prev_names=None):
      # Here we just list some likely combinations.. you can just add any
      # combinations you want to use, to this list.
      assert first_token in [
          "attention-renorm-layer",
          "attention-relu-renorm-layer",
          "attention-relu-batchnorm-layer",
          "relu-renorm-attention-layer",
      ]
      XconfigLayerBase.__init__(
          self, first_token, key_to_value, prev_names
      )
  
file_path: espnet/egs2/an4/asr1/steps/libs/nnet3/xconfig/attention.py
imports: from __future__ import print_function
  from __future__ import division
  import math
  import re
  import sys
  from libs.nnet3.xconfig.basic_layers import XconfigLayerBase
label_desc: Use image node_id 1 to create a new XconfigAttentionLayer object from inherited base classes: XconfigLayerBase with example: obj = XconfigAttentionLayer(first_token, key_to_value, prev_names)