Skip to content

Commit d84fee6

Browse files
youkaichaofmassa
authored andcommitted
Update usps.py (#1117)
The backslash should be escaped. Currently, [it](https://pytorch.org/docs/master/torchvision/datasets.html#usps) looks bad:
1 parent 2b73a48 commit d84fee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/datasets/usps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class USPS(VisionDataset):
1111
"""`USPS <https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/multiclass.html#usps>`_ Dataset.
12-
The data-format is : [label [index:value ]*256 \n] * num_lines, where ``label`` lies in ``[1, 10]``.
12+
The data-format is : [label [index:value ]*256 \\n] * num_lines, where ``label`` lies in ``[1, 10]``.
1313
The value for each pixel lies in ``[-1, 1]``. Here we transform the ``label`` into ``[0, 9]``
1414
and make pixel values in ``[0, 255]``.
1515

0 commit comments

Comments
 (0)