Skip to content

Commit e9a726f

Browse files
committed
Do both load and dynamic import
1 parent e3d08e3 commit e9a726f

File tree

1 file changed

+1
-0
lines changed
  • src/torchcodec/decoders/_core

1 file changed

+1
-0
lines changed

src/torchcodec/decoders/_core/ops.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def load_torchcodec_extension():
4141
torch.ops.load_library(_get_extension_path(custom_ops_library_name))
4242

4343
pybind_ops_library_path = _get_extension_path(pybind_ops_library_name)
44+
torch.ops.load_library(pybind_ops_library_path)
4445
spec = importlib.util.spec_from_file_location(
4546
pybind_ops_module_name,
4647
pybind_ops_library_path,

0 commit comments

Comments
 (0)