Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion test/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,8 @@ def test_decode_jpeg_cuda(mode, img_path, scripted):
@pytest.mark.parametrize('cuda_device', ('cuda', 'cuda:0', torch.device('cuda')))
def test_decode_jpeg_cuda_device_param(cuda_device):
"""Make sure we can pass a string or a torch.device as device param"""
data = read_file(next(get_images(IMAGE_ROOT, ".jpg")))
path = next(path for path in get_images(IMAGE_ROOT, ".jpg") if 'cmyk' not in path)
data = read_file(path)
decode_jpeg(data, device=cuda_device)


Expand Down