Skip to content

Commit b60224a

Browse files
Explicitly put the created extension into sys.modules for PT2.9. (#158)
* Explicitly put the created extension into sys.modules for PT2.9. * Replaced importlib with sys. * Removed unused import. * No need for default parameter.
1 parent fcb0f3e commit b60224a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

openequivariance/extlib/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ def postprocess(kernel):
120120
extra_include_paths=include_dirs,
121121
extra_ldflags=extra_link_args,
122122
)
123+
if "generic_module" not in sys.modules:
124+
sys.modules["generic_module"] = generic_module
123125

124126
if not TORCH_COMPILE:
125127
warnings.warn(

0 commit comments

Comments
 (0)