记一个pytorch和mxne共同载入,程序退出时候,unload报错

Segmentation fault: 11 

Stack trace: 

  [bt] (0) /home/silva/anaconda3/envs/py372/lib/python3.7/site-packages/mxnet/libmxnet.so(+0x2e6b140) [0x7f0e63059140] 

  [bt] (1) /lib/x86_64-linux-gnu/libc.so.6(+0x354b0) [0x7f0f5be634b0] 

  [bt] (2) /home/silva/anaconda3/envs/py372/lib/python3.7/site-packages/torchvision/../../../libcudart.so.9.2(+0x17dc4) [0x7f0efa636dc4] 

  [bt] (3) /home/silva/anaconda3/envs/py372/lib/python3.7/site-packages/torchvision/../../../libcudart.so.9.2(+0x1268d) [0x7f0efa63168d] 

  [bt] (4) /home/silva/anaconda3/envs/py372/lib/python3.7/site-packages/torchvision/../../../libcudart.so.9.2(cudaSetDevice+0x5e) [0x7f0efa661e0e] 

  [bt] (5) /home/silva/anaconda3/envs/py372/lib/python3.7/site-packages/mxnet/libmxnet.so(+0x25bf40a) [0x7f0e627ad40a] 

  [bt] (6) /home/silva/anaconda3/envs/py372/lib/python3.7/site-packages/mxnet/libmxnet.so(+0x25cc21e) [0x7f0e627ba21e] 

  [bt] (7) /home/silva/anaconda3/envs/py372/lib/python3.7/site-packages/mxnet/libmxnet.so(+0x25b4d8e) [0x7f0e627a2d8e] 

  [bt] (8) /home/silva/anaconda3/envs/py372/lib/python3.7/site-packages/mxnet/libmxnet.so(+0x25b5cd4) [0x7f0e627a3cd4] 

解决办法是:

原因是torch内部带了 

python3.7/site-packages/torch/lib/libcudart-1b201d85.so.10.1, 所以torch和mxnet 不同版本,一起载入后,在两者unload的时候,mxnet报错了,解决办法是,mxnet也安装mxnet-101 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值