Skip to content

Commit ef65c1c

Browse files
committed
Remove uses of get_video_backend
1 parent eaa1096 commit ef65c1c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

torchvision/io/video.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ def read_video(
208208
if output_format not in ("THWC", "TCHW"):
209209
raise ValueError(f"output_format should be either 'THWC' or 'TCHW', got {output_format}.")
210210

211-
from torchvision import get_video_backend
212211

213212
if True: # ignore, this is to avoid a bigger diff in https://github.com/pytorch/vision/pull/9189
214213
_check_av_available()
@@ -329,7 +328,6 @@ def read_video_timestamps(filename: str, pts_unit: str = "pts") -> tuple[list[in
329328
_raise_video_deprecation_warning()
330329
if not torch.jit.is_scripting() and not torch.jit.is_tracing():
331330
_log_api_usage_once(read_video_timestamps)
332-
from torchvision import get_video_backend
333331

334332
_check_av_available()
335333

0 commit comments

Comments
 (0)