找回密码
 会员注册
查看: 30|回复: 0

pytorch_quantizationcuda_ext.cpython-310-x86_64-linux-gnu.soundefinedsymbol_ZN3c106detail1

[复制链接]

6

主题

0

回帖

19

积分

新手上路

积分
19
发表于 2024-9-10 08:15:58 | 显示全部楼层 |阅读模式
pytorch_quantization/cuda_ext.cpython-310-x86_64-linux-gnu.so:undefinedsymbol:_ZN3c106detail1pytorch_quantization/cuda_ext.cpython-310-x86_64-linux-gnu.so:undefinedsymbol:_ZN3c106detail1报错现象解决方法pytorch_quantization/cuda_ext.cpython-310-x86_64-linux-gnu.so:undefinedsymbol:_ZN3c106detail1使用pytorch_quantization进行量化报错现象Python3.10.13|packagedbyconda-forge|(main,Dec232023,15:36:39)[GCC12.3.0]onlinuxType"help","copyright","credits"or"license"formoreinformation.>>>frompytorch_quantizationimportquant_modulesTraceback(mostrecentcalllast):File"",line1,inFile"/data/miniconda3/envs/py310_nlp/lib/python3.10/site-packages/pytorch_quantization/__init__.py",line20,infrom.quant_modulesimport*File"/data/miniconda3/envs/py310_nlp/lib/python3.10/site-packages/pytorch_quantization/quant_modules.py",line23,infrompytorch_quantizationimportnnasquant_nnFile"/data/miniconda3/envs/py310_nlp/lib/python3.10/site-packages/pytorch_quantization/nn/__init__.py",line19,infrompytorch_quantization.nn.modules.tensor_quantizerimport*File"/data/miniconda3/envs/py310_nlp/lib/python3.10/site-packages/pytorch_quantization/nn/modules/tensor_quantizer.py",line24,infrompytorch_quantization.tensor_quantimportQuantDescriptor,tensor_quant,fake_tensor_quant,scaled_e4m3File"/data/miniconda3/envs/py310_nlp/lib/python3.10/site-packages/pytorch_quantization/tensor_quant.py",line28,infrompytorch_quantizationimportcuda_extImportError:/data/miniconda3/envs/py310_nlp/lib/python3.10/site-packages/pytorch_quantization/cuda_ext.cpython-310-x86_64-linux-gnu.so:undefinedsymbol:_ZN3c106detail14torchCheckFailEPKcS2_jRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE12345678910111213141516重点错误提示:ImportError:/data/miniconda3/envs/py310_nlp/lib/python3.10/site-packages/pytorch_quantization/cuda_ext.cpython-310-x86_64-linux-gnu.so:undefinedsymbol:_ZN3c106detail14torchCheckFailEPKcS2_jRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE1重点:pytorch_quantization/cuda_ext.cpython-310-x86_64-linux-gnu.so:undefinedsymbol:_ZN3c106detail14torchCheckFailEPKcS2_jRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE1解决方法默认安装的pytorch-quantization为2.2.1版本,安装2.1.3即可正常使用pipinstallpytorch-quantization==2.1.31
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 会员注册

本版积分规则

QQ|手机版|心飞设计-版权所有:微度网络信息技术服务中心 ( 鲁ICP备17032091号-12 )|网站地图

GMT+8, 2025-1-7 07:02 , Processed in 0.425318 second(s), 25 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表