Skip to content

Commit 59c129f

Browse files
committed
Using plain _trochcodec_pybind_ops
1 parent 89c8698 commit 59c129f

File tree

1 file changed

+2
-2
lines changed
  • src/torchcodec/decoders/_core

1 file changed

+2
-2
lines changed

src/torchcodec/decoders/_core/ops.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def load_torchcodec_extension():
3535
decoder_library_name = f"libtorchcodec_decoder{ffmpeg_major_version}"
3636
custom_ops_library_name = f"libtorchcodec_custom_ops{ffmpeg_major_version}"
3737
pybind_ops_library_name = f"libtorchcodec_pybind_ops{ffmpeg_major_version}"
38-
pybind_ops_module_name = "torchcodec._torchcodec_pybind_ops"
38+
pybind_ops_module_name = "_torchcodec_pybind_ops"
3939
try:
4040
torch.ops.load_library(_get_extension_path(decoder_library_name))
4141
torch.ops.load_library(_get_extension_path(custom_ops_library_name))
@@ -47,7 +47,7 @@ def load_torchcodec_extension():
4747
)
4848
global _pybind_ops
4949
if spec is None:
50-
_pybind_ops = importlib.util.import_module(pybind_ops_module_name)
50+
_pybind_ops = importlib.import_module(pybind_ops_module_name)
5151
if _pybind_ops is None:
5252
raise ImportError("Unable to load spec for pybind_ops")
5353

0 commit comments

Comments
 (0)