Skip to content

Commit

Permalink
Add missing doc for get_video_backend (pytorch#3643)
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Nicolas Hug <nicolashug@fb.com>
  • Loading branch information
3 people authored Apr 7, 2021
1 parent 9e5edbd commit e79a74e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions torchvision/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ def set_video_backend(backend):


def get_video_backend():
"""
Returns the currently active video backend used to decode videos.
Returns:
str: Name of the video backend. one of {'pyav', 'video_reader'}.
"""

return _video_backend


Expand Down

0 comments on commit e79a74e

Please sign in to comment.