code: def forward(self, q, a_batch):
      q = autograd.reshape(q, (q.shape[0], -1))  # bs, seq_q*data_s
      a_batch = autograd.reshape(
          a_batch, (a_batch.shape[0], -1)
      )  # 2bs, seq_a*data_s
  
      q = self.linear_q(q)  # bs, hid_s
      a_batch = self.linear_a(a_batch)  # 2bs, hid_s
  
      a_pos, a_neg = autograd.split(
          a_batch, 0, [q.shape[0], q.shape[0]]
      )  # 2*(bs, hid)
  
      sim_pos = autograd.cossim(q, a_pos)
      sim_neg = autograd.cossim(q, a_neg)
      return sim_pos, sim_neg
  
file_path: singa/examples/qabot/qabot_model.py
imports: from singa import autograd, layer, model
label_desc: Use image node_id 2 for calling the QAModel_mlp obj's underlying member method code with example usage: obj.forward(q, a_batch) and returns: sim_pos,  sim_neg