Skip to content

Commit aa1e1e5

Browse files
pierrot0copybara-github
authored andcommitted
Switch Beam based builders to used the latest version (compatible with the new split API).
Older versions of datasets will be made obsolete in a following change. If this change breaks your pipeline: 1- specify the version of the dataset which you were using so far as a quick fix (https://www.tensorflow.org/datasets/datasets_versioning#loading_a_specific_version), 2- Change your code to use new API (https://www.tensorflow.org/datasets/splits), re-switch to latest version of dataset. PiperOrigin-RevId: 290948513
1 parent f2c7982 commit aa1e1e5

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

tensorflow_datasets/image/abstract_reasoning.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ def __init__(self, split_type="neutral", **kwargs):
146146
v100 = tfds.core.Version(
147147
"1.0.0", "New split API (https://tensorflow.org/datasets/splits)")
148148
super(AbstractReasoningConfig, self).__init__(
149-
version=v002,
150-
supported_versions=[v100],
149+
version=v100,
150+
supported_versions=[v002],
151151
**kwargs)
152152
self.split_type = split_type
153153

tensorflow_datasets/image/bigearthnet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ def __init__(self, selection=None, **kwargs):
121121
v100 = tfds.core.Version(
122122
'1.0.0', 'New split API (https://tensorflow.org/datasets/splits)')
123123
super(BigearthnetConfig, self).__init__(
124-
version=v002,
125-
supported_versions=[v100],
124+
version=v100,
125+
supported_versions=[v002],
126126
**kwargs)
127127
self.selection = selection
128128

tensorflow_datasets/text/c4.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@
4848
}
4949
"""
5050
_VERSION = tfds.core.Version(
51-
"1.1.0", experiments={tfds.core.Experiment.S3: False},
52-
tfds_version_to_prepare="42f5bf89efcfd2cd165c2511b22be49cb1a50856")
51+
"2.0.0", "New split API (https://tensorflow.org/datasets/splits)")
5352

5453
_SUPPORTED_VERSIONS = [
5554
tfds.core.Version(
56-
"2.0.0", "New split API (https://tensorflow.org/datasets/splits)"),
55+
"1.1.0", experiments={tfds.core.Experiment.S3: False},
56+
tfds_version_to_prepare="42f5bf89efcfd2cd165c2511b22be49cb1a50856"),
5757
tfds.core.Version(
5858
"1.0.1", experiments={tfds.core.Experiment.S3: False},
5959
tfds_version_to_prepare="6e3fdaea40ff881ca74306279401efd9185a9541"),

tensorflow_datasets/text/wikipedia.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ def __init__(self, language=None, date=None, **kwargs):
116116

117117

118118
_VERSION = tfds.core.Version(
119-
"0.0.4", experiments={tfds.core.Experiment.S3: False},
120-
tfds_version_to_prepare="f567c68af2e9ea39fe866ada8c92aef3b6dba613")
119+
"1.0.0", "New split API (https://tensorflow.org/datasets/splits)")
121120

122121
_SUPPORTED_VERSIONS = [
123122
tfds.core.Version(
124-
"1.0.0", "New split API (https://tensorflow.org/datasets/splits)"),
123+
"0.0.4", experiments={tfds.core.Experiment.S3: False},
124+
tfds_version_to_prepare="f567c68af2e9ea39fe866ada8c92aef3b6dba613"),
125125
tfds.core.Version(
126126
"0.0.3", experiments={tfds.core.Experiment.S3: False},
127127
tfds_version_to_prepare="ec93f3121369716b5d0a3b076d9e080602959b2a"),

0 commit comments

Comments
 (0)