def forward(self, input_, pos1, pos2):
    embd = self.word_emb(input_)
    pos1 = self.pos1_emb(pos1)
    pos2 = self.pos2_emb(pos2)
    embd = torch.cat((embd, pos1, pos2), 2)
    (_, h_t_) = self.encoder(embed)
    h_t = (torch.cat((h_t_[(- 1)], h_t_[(- 2)]), 1) if self.bidir else h_t_[(- 1)])
    return h_t
def forward(self, input_, pos1, pos2):
    embd = self.word_emb(input_)
    pos1 = self.pos1_emb(pos1)
    pos2 = self.pos2_emb(pos2)
    embd = torch.cat((embd, pos1, pos2), 2)
    (_, h_t_) = self.encoder(embed)
    h_t = (torch.cat((h_t_[(- 1)], h_t_[(- 2)]), 1) if self.bidir else h_t_[(- 1)])
    return h_t