Skip to content

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

Open
@samabogbog

Description

@samabogbog

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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions