Skip to content

Commit 418755e

Browse files
stephenyan1231fmassa
authored andcommitted
expose more io api (#1423)
1 parent f7effd7 commit 418755e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

torchvision/io/__init__.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
from .video import write_video, read_video, read_video_timestamps
2-
from ._video_opt import _read_video_from_file, _read_video_timestamps_from_file, _HAS_VIDEO_OPT
2+
from ._video_opt import (
3+
_read_video_from_file,
4+
_read_video_timestamps_from_file,
5+
_read_video_from_memory,
6+
_read_video_timestamps_from_memory,
7+
_HAS_VIDEO_OPT,
8+
)
39

410

511
__all__ = [
612
'write_video', 'read_video', 'read_video_timestamps',
7-
'_read_video_from_file', '_read_video_timestamps_from_file', '_HAS_VIDEO_OPT',
13+
'_read_video_from_file', '_read_video_timestamps_from_file',
14+
'_read_video_from_memory', '_read_video_timestamps_from_memory',
15+
'_HAS_VIDEO_OPT',
816
]

0 commit comments

Comments
 (0)