Skip to content

Commit aae0dc6

Browse files
zhaobaiyualykhantejani
authored andcommitted
a small error in docstring of transforms.Normalize (#341)
docstring fix for Normalize: the std sequence should be (S1, ..., Sn).
1 parent c4b86b0 commit aae0dc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/transforms/transforms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def __call__(self, pic):
9494

9595
class Normalize(object):
9696
"""Normalize an tensor image with mean and standard deviation.
97-
Given mean: ``(M1,...,Mn)`` and std: ``(M1,..,Mn)`` for ``n`` channels, this transform
97+
Given mean: ``(M1,...,Mn)`` and std: ``(S1,..,Sn)`` for ``n`` channels, this transform
9898
will normalize each channel of the input ``torch.*Tensor`` i.e.
9999
``input[channel] = (input[channel] - mean[channel]) / std[channel]``
100100

0 commit comments

Comments
 (0)