We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6819070 commit 89c8698Copy full SHA for 89c8698
src/torchcodec/decoders/_core/ops.py
@@ -45,12 +45,12 @@ def load_torchcodec_extension():
45
pybind_ops_module_name,
46
_get_extension_path(pybind_ops_library_name),
47
)
48
+ global _pybind_ops
49
if spec is None:
- spec = importlib.util.find_spec(pybind_ops_module_name)
50
- if spec is None:
+ _pybind_ops = importlib.util.import_module(pybind_ops_module_name)
51
+ if _pybind_ops is None:
52
raise ImportError("Unable to load spec for pybind_ops")
53
- global _pybind_ops
54
_pybind_ops = importlib.util.module_from_spec(spec)
55
return
56
except Exception as e:
0 commit comments