网络训练好之后想进行测试来着,发现出现了这个错误:Process finished with exit code 132 (interrupted by signal 4: SIGILL)
原因是CPU的问题,只需要把模型放到GPU上即可。
1 2 3 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu") model.to(device) out_put = model(img.to(device)) |
本文最后更新于2020年11月20日,已超过 1 年没有更新,如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!
最新评论
还有macapp.org.cn macwk.cn
大佬,IOS17.1能用吗?
没安装桌面的时候就有网,安了就没有了
可是安装好了没有网啊,怎么办大佬
您好,我这边需要跟您沟通下亚马逊云科技文章合作事宜,您看可以加个微信,详聊一下嘛
感谢分享。。。
试一下好用不,顺便感谢下
跟我换换吧