Skip to content

Commit 874481f

Browse files
Michael Galkovsoumith
authored andcommitted
Fix typo (#158)
1 parent 1f2c15f commit 874481f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/transforms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __call__(self, pic):
4444
if isinstance(pic, np.ndarray):
4545
# handle numpy array
4646
img = torch.from_numpy(pic.transpose((2, 0, 1)))
47-
# backard compability
47+
# backward compatibility
4848
return img.float().div(255)
4949

5050
if accimage is not None and isinstance(pic, accimage.Image):

0 commit comments

Comments
 (0)