From 41873f5dd07a471fa3f6d46f7ffacc1ecbcc01d8 Mon Sep 17 00:00:00 2001 From: Andrei Ivanov Date: Wed, 6 Aug 2025 10:43:04 -0700 Subject: [PATCH] Clean up usage of the deprecated `mode` parameter. --- torchvision/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchvision/utils.py b/torchvision/utils.py index 0d819ef8330..85c3b017cb2 100644 --- a/torchvision/utils.py +++ b/torchvision/utils.py @@ -251,7 +251,7 @@ def _Image_fromarray( return Image.frombuffer(mode, size, contiguous_obj, "raw", mode, 0, 1) else: - return Image.fromarray(obj, mode) + return Image.fromarray(obj) @torch.no_grad()