Decode with a fixed, true sequence, computing loss. Useful for training, or ranking fixed candidates. :param ys: the prediction targets. Contains both the start and end tokens. :type ys: LongTensor[bsz, time] :param encode
(self, encoder_states, encoder_states_kg, encoder_states_db, attention_kg, attention_db, ys)