Skip to content

Commit edce04b

Browse files
committed
Remove asserts.
1 parent 70a8364 commit edce04b

File tree

1 file changed

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

1 file changed

+0
-2
lines changed

src/torchcodec/decoders/_core/ops.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ def load_torchcodec_extension():
4444
)
4545
global _pybind_ops
4646
_pybind_ops = importlib.util.module_from_spec(spec)
47-
assert _pybind_ops is not None
4847
return
4948
except Exception as e:
5049
# TODO: recording and reporting exceptions this way is OK for now as it's just for debugging,
@@ -131,7 +130,6 @@ def create_from_bytes(
131130
def create_from_file_like(
132131
file_like: io.RawIOBase, seek_mode: Optional[str] = None
133132
) -> torch.Tensor:
134-
assert _pybind_ops is not None
135133
return _convert_to_tensor(_pybind_ops.create_from_file_like(file_like, seek_mode))
136134

137135

0 commit comments

Comments
 (0)