class_docstr: Soft alignment attention implement.
  
  Attributes:
      dim (int): attention hidden dim
docstr: Initialization steps for AttLayer2.
  
  Args:
      dim (int): attention hidden dim
docstr_tok: ["Initialization","steps","for","AttLayer2",".","Args",":","dim","(","int",")",":","attention","hidden","dim"]
code: def __init__(self, dim=200, seed=0, **kwargs):
      """Initialization steps for AttLayer2.
  
      Args:
          dim (int): attention hidden dim
      """
  
      self.dim = dim
      self.seed = seed
      super(AttLayer2, self).__init__(**kwargs)
  
imports: import tensorflow.compat.v1.keras
  from tensorflow.compat.v1.linalg import einsum
  from tensorflow.compat.v1.keras import layers
  from tensorflow.compat.v1.keras import backend
label_desc: Use image node_id 1 to create a new AttLayer2 object from inherited base classes: layers with example: obj = AttLayer2(dim, seed)