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 f56b259 commit ffdbbfbCopy full SHA for ffdbbfb
src/torchcodec/decoders/_core/ops.py
@@ -39,10 +39,13 @@ def load_torchcodec_extension():
39
try:
40
torch.ops.load_library(_get_extension_path(decoder_library_name))
41
torch.ops.load_library(_get_extension_path(custom_ops_library_name))
42
+
43
spec = importlib.util.spec_from_file_location(
44
pybind_ops_module_name,
45
_get_extension_path(pybind_ops_library_name),
46
)
47
+ assert spec is not None
48
49
global _pybind_ops
50
_pybind_ops = importlib.util.module_from_spec(spec)
51
return
0 commit comments