Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSError: [WinError 126] The specified module could not be found. Error loading "...\aoti_custom_ops.dll" or one of its dependencies. #788

Open
samabogbog opened this issue Feb 19, 2025 · 3 comments
Assignees

Comments

@samabogbog
Copy link

Describe the issue

Traceback (most recent call last):
File "C:.pytemp\ipex\app.py", line 1, in
import torch
File "C:.pytemp\ipex.env\lib\site-packages\torch_init_.py", line 262, in
load_dll_libraries()
File "C:.pytemp\ipex.env\lib\site-packages\torch_init
.py", line 258, in _load_dll_libraries
raise err
OSError: [WinError 126] The specified module could not be found. Error loading "C:.pytemp\ipex.env\lib\site-packages\torch\lib\aoti_custom_ops.dll" or one of its dependencies.

===========================
Code :
import torch
import intel_extension_for_pytorch as ipex

model = torch.nn.Linear(10, 10)
model = ipex.optimize(model)

input_data = torch.randn(1, 10)
output = model(input_data)
print(output)

@huiyan2021
Copy link

huiyan2021 commented Feb 20, 2025

Hi @samabogbog , as we described in the installation guide, on Windows, libuv needs to be installed, could you try in conda environment? Thanks!

Image

@huiyan2021 huiyan2021 self-assigned this Feb 20, 2025
@opolette
Copy link

opolette commented Mar 3, 2025

Same issue here. Libuv installed. Error loading "[...]aoti_custom_ops.dll" or one of its dependencies.

@kangxiatao
Copy link

kangxiatao commented Mar 5, 2025

I have encountered the same problem and I am looking forward to its resolution.😲

Intel(R) Core(TM) Ultra 7 255H

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants