We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f2c15f commit 874481fCopy full SHA for 874481f
torchvision/transforms.py
@@ -44,7 +44,7 @@ def __call__(self, pic):
44
if isinstance(pic, np.ndarray):
45
# handle numpy array
46
img = torch.from_numpy(pic.transpose((2, 0, 1)))
47
- # backard compability
+ # backward compatibility
48
return img.float().div(255)
49
50
if accimage is not None and isinstance(pic, accimage.Image):
0 commit comments