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 a pure python wrapper fo pybindings.{aten,portable}_lib (#3137)
Summary:
When installed as a pip wheel, we must import `torch` before trying to import the pybindings shared library extension. This will load libtorch.so and related libs, ensuring that the pybindings lib can resolve those runtime dependencies.
So, add a pure python wrapper that lets us do this when users say `import executorch.extension.pybindings.portable_lib`
We only need this for OSS, so don't bother doing this for other pybindings targets.
Differential Revision: D56317150
0 commit comments