You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add pybind extension to the DLL search path on Windows (#14446)
### Summary
When installing ExecuTorch from a wheel on Windows, the native pybinding
extension DLL fails to load
(#14443). This is because
it's not on the search path. From a quick Google search, it seems like
the recommended way to handle this is to call `os.add_dll_directory`
prior to loading the extension.
I tested this locally by installing from wheel in a clean env and then
patching the installed copy in site-packages. With this change, I was
able to import executorch.extension.pybindings.portable_lib. I also ran
the XNNPACK add op tests as a sanity check, which use pybindings.
0 commit comments