CircleLoss
CircleLoss copied to clipboard
RuntimeError: "triu" not implemented for 'Bool'
请问有人遇到这个问题吗?我的pytorch版本是1.5.0
Have you checked the version?
print(torch.__version__)
也遇到了同样的问题,楼主是否解决
Have you checked the version?
print(torch.__version__)
Thank you very much. I tried installing the version pytorch 1.5.0 against and the error was solved.
也遇到了同样的问题,楼主是否解决
我之前安装的pytorch1.5有问题,所以之后我卸载又重装了,现在就可以跑通这个代码啦,你就安装1.5的pytorch吧,然后Python是3.6的。
应该是pytorch版本的问题,我也解决了,换了其中两个语句
应该是pytorch版本的问题,我也解决了,换了其中两个语句
请问你的pytorch版本是1.2吗?能否分享下更换了那两句?谢谢
应该是pytorch版本的问题,我也解决了,换了其中两个语句
请问你的pytorch版本是1.2吗?能否分享下更换了那两句?谢谢
请问你的问题解决了吗?我也是1.2版本
我的torch版本也是1.2.0,将ProbMask()函数中的代码改了一下就好了: _mask = torch.ones(L, scores.shape[-1], dtype=torch.float).to(device).triu(1) > 0