Skip to content

Commit 9b7abc9

Browse files
fmassaNicolasHug
authored andcommitted
[fbsync] Add missing doc for get_video_backend (#3643)
Summary: Reviewed By: NicolasHug Differential Revision: D27706956 fbshipit-source-id: c5e3f4030b9df7081d72ea9a2e307cadb9f0a676 Co-authored-by: Nicolas Hug <[email protected]> Co-authored-by: Nicolas Hug <[email protected]>
1 parent b79d710 commit 9b7abc9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

torchvision/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@ def set_video_backend(backend):
8585

8686

8787
def get_video_backend():
88+
"""
89+
Returns the currently active video backend used to decode videos.
90+
91+
Returns:
92+
str: Name of the video backend. one of {'pyav', 'video_reader'}.
93+
"""
94+
8895
return _video_backend
8996

9097

0 commit comments

Comments
 (0)