您好,我在运行代码时在train_and_evaluate.py的317行的indices += temp_beam_pos * batch_size遇到bug, 显示
RuntimeError: result type Float can't be cast to the desired output type Long
我排查后发现是因为312行temp_beam_pos = temp_topk / decoder.output_size获得的temp_beam_pos并不是LongTensor型数据,想请问这句代码是什么含义,这个bug该如何解决呢?