We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 120e22b commit bfff7f9Copy full SHA for bfff7f9
test/test_io.py
@@ -6,7 +6,7 @@
6
import pytest
7
import torch
8
import torchvision.io as io
9
-from common_utils import assert_equal
+from common_utils import assert_equal, cpu_and_cuda
10
from torchvision import get_video_backend
11
12
@@ -255,7 +255,7 @@ def test_read_video_partially_corrupted_file(self):
255
assert_equal(video, data)
256
257
@pytest.mark.skipif(sys.platform == "win32", reason="temporarily disabled on Windows")
258
- @pytest.mark.parametrize("device", ["cpu", "cuda"])
+ @pytest.mark.parametrize("device", cpu_and_cuda())
259
def test_write_video_with_audio(self, device, tmpdir):
260
f_name = os.path.join(VIDEO_DIR, "R6llTwEh07w.mp4")
261
video_tensor, audio_tensor, info = io.read_video(f_name, pts_unit="sec")
0 commit comments