Skip to content

Commit 15f6a22

Browse files
jvmancusoalykhantejani
authored andcommitted
Cifar100 added to docs (#318)
added CIFAR100 autoclass in docs
1 parent 3990952 commit 15f6a22

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/source/datasets.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ CIFAR
8686
:members: __getitem__
8787
:special-members:
8888

89+
.. autoclass:: CIFAR100
90+
8991
STL10
9092
~~~~~
9193

torchvision/datasets/cifar.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ def download(self):
161161

162162

163163
class CIFAR100(CIFAR10):
164+
"""`CIFAR100 <https://www.cs.toronto.edu/~kriz/cifar.html>`_ Dataset.
165+
166+
This is a subclass of the `CIFAR10` Dataset.
167+
"""
164168
base_folder = 'cifar-100-python'
165169
url = "https://www.cs.toronto.edu/~kriz/cifar-100-python.tar.gz"
166170
filename = "cifar-100-python.tar.gz"

0 commit comments

Comments
 (0)