Open_QG icon indicating copy to clipboard operation
Open_QG copied to clipboard

运行问题

Open lili1234567890 opened this issue 2 years ago • 2 comments

测试的时候显示: File "F:\code\自动问题生成\Open_QG-master\Open_QG-master\src\beam.py", line 235, in get_hypothesis hyp.append(self.next_ys[j + 1][k]) IndexError: tensors used as indices must be long, byte or bool tensors 求帮助!

lili1234567890 avatar Mar 10 '22 00:03 lili1234567890

也许是你用的pytorch版本高了,requirements.txt里有指定这个项目对应的库版本: numpy==1.14.0 torch==0.4.1 tqdm==4.22.0

可以试试conda,针对不同的项目可以构建不同的环境

qjzhzw avatar Apr 06 '22 12:04 qjzhzw

这是来自QQ邮箱的假期自动回复邮件。您好,邮件我已收到,祝好!

lili1234567890 avatar Apr 06 '22 12:04 lili1234567890