code: def __init__(
      self,
      hidden_size,
      q_seq,
      a_seq,
      num_layers=1,
      bidirectional=True,
      return_sequences=True,
  ):
      super(QAModel_maxpooling, self).__init__()
      self.hidden_size = hidden_size
      self.lstm_q = layer.CudnnRNN(
          hidden_size=hidden_size,
          bidirectional=bidirectional,
          return_sequences=return_sequences,
      )
      self.lstm_a = layer.CudnnRNN(
          hidden_size=hidden_size,
          bidirectional=bidirectional,
          return_sequences=return_sequences,
      )
      self.q_pool = layer.MaxPool2d((q_seq, 1))
      self.a_pool = layer.MaxPool2d((a_seq, 1))
  
file_path: singa/examples/qabot/qabot_model.py
imports: from singa import autograd, layer, model
label_desc: Use image node_id 1 to create a new QAModel_maxpooling object from inherited base classes: model with example: obj = QAModel_maxpooling(hidden_size, q_seq, a_seq, num_layers, bidirectional, return_sequences)