From c9692eb9915dd55f978e6e59be9f44d89865bd38 Mon Sep 17 00:00:00 2001 From: Jack Newsom Date: Sat, 18 May 2024 12:00:45 -0700 Subject: [PATCH] fix typo --- torchvision/transforms/v2/functional/_color.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchvision/transforms/v2/functional/_color.py b/torchvision/transforms/v2/functional/_color.py index 854aa18eeba..34d1e101dbd 100644 --- a/torchvision/transforms/v2/functional/_color.py +++ b/torchvision/transforms/v2/functional/_color.py @@ -687,7 +687,7 @@ def permute_channels(inpt: torch.Tensor, permutation: List[int]) -> torch.Tensor Example: >>> rgb_image = torch.rand(3, 256, 256) - >>> bgr_image = F.permutate_channels(rgb_image, permutation=[2, 1, 0]) + >>> bgr_image = F.permute_channels(rgb_image, permutation=[2, 1, 0]) Args: permutation (List[int]): Valid permutation of the input channel indices. The index of the element determines the