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 1c6fad8 commit eb1b51dCopy full SHA for eb1b51d
src/torchcodec/_core/AVIOFileLikeContext.cpp
@@ -16,9 +16,9 @@ AVIOFileLikeContext::AVIOFileLikeContext(py::object fileLike)
16
// harmful? At the moment, this is only called from within a pybind
17
// function, and pybind guarantees we have the GIL.
18
py::gil_scoped_acquire gil;
19
- TORCH_CHECK(
20
- py::hasattr(fileLike, "read"),
21
- "File like object must implement a read method.");
+ // TORCH_CHECK(
+ // py::hasattr(fileLike, "read"),
+ // "File like object must implement a read method.");
22
TORCH_CHECK(
23
py::hasattr(fileLike, "seek"),
24
"File like object must implement a seek method.");
0 commit comments