Description
Describe the bug
C:\Users\clear\miniconda3\envs\310\lib\site-packages\torchvision\io\image.py:13: UserWarning: Failed to load image Python extension: 'Could not find module 'C:\Users\clear\miniconda3\envs\310\Lib\site-packages\torchvision\image.pyd' (or one of its dependencies). Try using the full path with constructor syntax.'If you don't plan on using image functionality from torchvision.io
, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you have libjpeg
or libpng
installed before building torchvision
from source?
warn(
Collecting environment information...
Traceback (most recent call last):
File "C:\pythonxm\测试ARC显卡\collect_env.py", line 517, in
main()
File "C:\pythonxm\测试ARC显卡\collect_env.py", line 512, in main
output = get_pretty_env_info()
File "C:\pythonxm\测试ARC显卡\collect_env.py", line 507, in get_pretty_env_info
return pretty_str(get_env_info())
File "C:\pythonxm\测试ARC显卡\collect_env.py", line 368, in get_env_info
xpu_available_str = str(torch.xpu.is_available())
File "C:\Users\clear\miniconda3\envs\310\lib\site-packages\torch\xpu_init_.py", line 63, in is_available
return device_count() > 0
File "C:\Users\clear\miniconda3\envs\310\lib\site-packages\torch\xpu_init_.py", line 57, in device_count
return torch._C._xpu_getDeviceCount()
RuntimeError: Can't add devices across platforms to a single context. -33 (PI_ERROR_INVALID_DEVICE)
conda install libuv
python -m pip install torch==2.3.1+cxx11.abi torchvision==0.18.1+cxx11.abi torchaudio==2.3.1+cxx11.abi intel-extension-for-pytorch==2.3.110+xpu --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/lnl/cn/
Versions
C:\Users\clear\miniconda3\envs\310\lib\site-packages\torchvision\io\image.py:13: UserWarning: Failed to load image Python extension: 'Could not find module 'C:\Users\clear\miniconda3\envs\310\Lib\site-packages\torchvision\image.pyd' (or one of its dependencies). Try using the full path with constructor syntax.'If you don't plan on using image functionality from torchvision.io
, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you have libjpeg
or libpng
installed before building torchvision
from source?
warn(
Collecting environment information...
Traceback (most recent call last):
File "C:\pythonxm\测试ARC显卡\collect_env.py", line 517, in
main()
File "C:\pythonxm\测试ARC显卡\collect_env.py", line 512, in main
output = get_pretty_env_info()
File "C:\pythonxm\测试ARC显卡\collect_env.py", line 507, in get_pretty_env_info
return pretty_str(get_env_info())
File "C:\pythonxm\测试ARC显卡\collect_env.py", line 368, in get_env_info
xpu_available_str = str(torch.xpu.is_available())
File "C:\Users\clear\miniconda3\envs\310\lib\site-packages\torch\xpu_init_.py", line 63, in is_available
return device_count() > 0
File "C:\Users\clear\miniconda3\envs\310\lib\site-packages\torch\xpu_init_.py", line 57, in device_count
return torch._C._xpu_getDeviceCount()
RuntimeError: Can't add devices across platforms to a single context. -33 (PI_ERROR_INVALID_DEVICE)