Skip to content

Commit eb1b51d

Browse files
committed
WIP
1 parent 1c6fad8 commit eb1b51d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/torchcodec/_core/AVIOFileLikeContext.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ AVIOFileLikeContext::AVIOFileLikeContext(py::object fileLike)
1616
// harmful? At the moment, this is only called from within a pybind
1717
// function, and pybind guarantees we have the GIL.
1818
py::gil_scoped_acquire gil;
19-
TORCH_CHECK(
20-
py::hasattr(fileLike, "read"),
21-
"File like object must implement a read method.");
19+
// TORCH_CHECK(
20+
// py::hasattr(fileLike, "read"),
21+
// "File like object must implement a read method.");
2222
TORCH_CHECK(
2323
py::hasattr(fileLike, "seek"),
2424
"File like object must implement a seek method.");

0 commit comments

Comments
 (0)