出错代码:inps.data[len(new_hyps)].copy_(row2feats[tblidx]) 改成:inps.data[int(len(new_hyps))].copy_(row2feats[int(tblidx)])