code: def __init__(
      self,
      embedding: ABCEmbedding,
      vocab_size: int,
      hidden_size: int = 1024,
  ):
      super(AttGRUDecoder, self).__init__()
      self.embedding = embedding
      self.hidden_size = hidden_size
      self.gru = tf.keras.layers.GRU(
          hidden_size,
          return_sequences=True,
          return_state=True,
          recurrent_initializer="glorot_uniform",
      )
      self.fc = tf.keras.layers.Dense(vocab_size)
  
      # 用于注意力
      self.attention = L.BahdanauAttention(hidden_size)
  
file_path: Kashgari/kashgari/tasks/seq2seq/decoder/att_gru_decoder.py
imports: import tensorflow
  from kashgari.embeddings.abc_embedding import ABCEmbedding
  from kashgari.layers import L
label_desc: Use image node_id 1 to create a new AttGRUDecoder object from inherited base classes: tf.keras with example: obj = AttGRUDecoder(embedding, vocab_size, hidden_size)