From 616a46898805222a5108e0d29cc5e9f407aac6ea Mon Sep 17 00:00:00 2001 From: talcs Date: Thu, 1 Feb 2024 17:51:29 +0200 Subject: [PATCH] Update _misc.py gaussian blue doc - mention padding policy --- torchvision/transforms/v2/_misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchvision/transforms/v2/_misc.py b/torchvision/transforms/v2/_misc.py index 6057e928115..6666dfa897a 100644 --- a/torchvision/transforms/v2/_misc.py +++ b/torchvision/transforms/v2/_misc.py @@ -166,7 +166,7 @@ def _transform(self, inpt: Any, params: Dict[str, Any]) -> Any: class GaussianBlur(Transform): - """Blurs image with randomly chosen Gaussian blur. + """Blurs image with randomly chosen Gaussian blur kernel. The convolution will be using reflection padding corresponding to the kernel size, to maintain the input shape. If the input is a Tensor, it is expected to have [..., C, H, W] shape, where ... means an arbitrary number of leading dimensions.