From e9998fcf734d967643234b170869d8b8683667d5 Mon Sep 17 00:00:00 2001 From: jvmancuso Date: Thu, 2 Nov 2017 11:59:13 -0400 Subject: [PATCH 1/4] added CIFAR100 autoclass in docs --- docs/source/datasets.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/source/datasets.rst b/docs/source/datasets.rst index 3152a82365c..7fc7c5da1ca 100644 --- a/docs/source/datasets.rst +++ b/docs/source/datasets.rst @@ -86,6 +86,8 @@ CIFAR :members: __getitem__ :special-members: +.. autoclass:: CIFAR100 + STL10 ~~~~~ From 309c3ada36f41e486fc98b8ffc0f442dd96ce3cb Mon Sep 17 00:00:00 2001 From: jvmancuso Date: Thu, 2 Nov 2017 12:06:08 -0400 Subject: [PATCH 2/4] added a simple docstring to CIFAR100 class --- torchvision/datasets/cifar.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/torchvision/datasets/cifar.py b/torchvision/datasets/cifar.py index 67f15fbdc6d..7e5ffaafcae 100644 --- a/torchvision/datasets/cifar.py +++ b/torchvision/datasets/cifar.py @@ -172,3 +172,7 @@ class CIFAR100(CIFAR10): test_list = [ ['test', 'f0ef6b0ae62326f3e7ffdfab6717acfc'], ] + """`CIFAR100 `_ Dataset. + + This is a subclass of the `CIFAR10` Dataset. + """ \ No newline at end of file From 62505d37d9b2e6a8c3c70e438e5560a036f90763 Mon Sep 17 00:00:00 2001 From: jvmancuso Date: Thu, 2 Nov 2017 12:07:13 -0400 Subject: [PATCH 3/4] fixed docstring addition --- torchvision/datasets/cifar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchvision/datasets/cifar.py b/torchvision/datasets/cifar.py index 7e5ffaafcae..3c0793d67ef 100644 --- a/torchvision/datasets/cifar.py +++ b/torchvision/datasets/cifar.py @@ -175,4 +175,4 @@ class CIFAR100(CIFAR10): """`CIFAR100 `_ Dataset. This is a subclass of the `CIFAR10` Dataset. - """ \ No newline at end of file + """ From c2530589c9b22d69e4223348b975a2b43f0e7af6 Mon Sep 17 00:00:00 2001 From: jvmancuso Date: Fri, 3 Nov 2017 15:06:13 -0400 Subject: [PATCH 4/4] fixing docstring for CIFAR100 --- torchvision/datasets/cifar.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/torchvision/datasets/cifar.py b/torchvision/datasets/cifar.py index 3c0793d67ef..c3b7b8ef4f2 100644 --- a/torchvision/datasets/cifar.py +++ b/torchvision/datasets/cifar.py @@ -161,6 +161,10 @@ def download(self): class CIFAR100(CIFAR10): + """`CIFAR100 `_ Dataset. + + This is a subclass of the `CIFAR10` Dataset. + """ base_folder = 'cifar-100-python' url = "https://www.cs.toronto.edu/~kriz/cifar-100-python.tar.gz" filename = "cifar-100-python.tar.gz" @@ -172,7 +176,3 @@ class CIFAR100(CIFAR10): test_list = [ ['test', 'f0ef6b0ae62326f3e7ffdfab6717acfc'], ] - """`CIFAR100 `_ Dataset. - - This is a subclass of the `CIFAR10` Dataset. - """