Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/torchcodec/_internally_replaced_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ def _load_pybind11_module(module_name: str, library_path: str) -> ModuleType:
f"Unable to load spec for module {module_name} from path {library_path}"
)

return importlib.util.module_from_spec(spec)
mod = importlib.util.module_from_spec(spec)
spec.loader.exec_module(mod)

return mod


# Note that the return value from this function must match the value used as
Expand Down
Loading