Skip to content

Commit 4bcc593

Browse files
committed
Format fixes
1 parent ee8903a commit 4bcc593

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

tensorflow_datasets/image_classification/imagenet2012_corrupted.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ def __init__(self, *, corruption_type=None, severity=1, **kwargs):
9898
self.corruption_type = corruption_type
9999
self.severity = severity
100100

101+
_VERSION = tfds.core.Version('3.1.0')
102+
101103
def _make_builder_configs():
102104
"""Construct a list of BuilderConfigs.
103105
@@ -151,9 +153,6 @@ def _decode_and_center_crop(image_bytes):
151153
class Imagenet2012Corrupted(Imagenet2012):
152154
"""Corrupted ImageNet2012 dataset."""
153155
BUILDER_CONFIGS = _make_builder_configs()
154-
155-
_VERSION = tfds.core.Version('3.1.0')
156-
157156
RELEASE_NOTES = {
158157
"0.0.1": "Initial dataset",
159158
"3.1.0":

tensorflow_datasets/image_classification/imagenet2012_subset.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ class Imagenet2012Subset(Imagenet2012):
7171
tfds.core.BuilderConfig( # pylint: disable=g-complex-comprehension
7272
name=subset_size,
7373
description='{} of total ImageNet training set.'.format(subset_size),
74-
version=tfds.core.Version(
75-
'5.0.0'),
74+
version=tfds.core.Version('5.0.0'),
7675
) for subset_size in SUBSET2FILES
7776
]
7877

0 commit comments

Comments
 (0)