From e86e8553b5edbd66420d895292f50106f9cef1d5 Mon Sep 17 00:00:00 2001 From: Lewis Patten Date: Sun, 11 Apr 2021 13:49:30 +0100 Subject: [PATCH] Corrected spelling in a Type Error --- torchvision/transforms/transforms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchvision/transforms/transforms.py b/torchvision/transforms/transforms.py index f7b6bf04970..291ac8b1ac3 100644 --- a/torchvision/transforms/transforms.py +++ b/torchvision/transforms/transforms.py @@ -1110,7 +1110,7 @@ def _check_input(self, value, name, center=1, bound=(0, float('inf')), clip_firs if not bound[0] <= value[0] <= value[1] <= bound[1]: raise ValueError("{} values should be between {}".format(name, bound)) else: - raise TypeError("{} should be a single number or a list/tuple with lenght 2.".format(name)) + raise TypeError("{} should be a single number or a list/tuple with length 2.".format(name)) # if value is 0 or (1., 1.) for brightness/contrast/saturation # or (0., 0.) for hue, do nothing