Skip to content

Commit 41873f5

Browse files
committed
Clean up usage of the deprecated mode parameter.
1 parent 98f8b37 commit 41873f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def _Image_fromarray(
251251

252252
return Image.frombuffer(mode, size, contiguous_obj, "raw", mode, 0, 1)
253253
else:
254-
return Image.fromarray(obj, mode)
254+
return Image.fromarray(obj)
255255

256256

257257
@torch.no_grad()

0 commit comments

Comments
 (0)