Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

tfds.core.Version

View source on GitHub

Dataset version MAJOR.MINOR.PATCH.

tfds.core.Version(
    version_str, description=None, experiments=None, tfds_version_to_prepare=None
)

Args:

  • version_str: string. Eg: "1.2.3".
  • description: string, a description of what is new in this version.
  • experiments: dict of experiments. See Experiment.
  • tfds_version_to_prepare: string, defaults to None. If set, indicates that current version of TFDS cannot be used to download_and_prepare the dataset, but that TFDS at version {tfds_version_to_prepare} should be used instead.

Attributes:

  • tuple

Methods

__eq__

View source

__eq__(
    other
)

Return self==value.

__ge__

View source

__ge__(
    other
)

Return self>=value.

__gt__

View source

__gt__(
    other
)

Return self>value.

__le__

View source

__le__(
    other
)

Return self<=value.

__lt__

View source

__lt__(
    other
)

Return self<value.

__ne__

View source

__ne__(
    other
)

Return self!=value.

implements

View source

implements(
    experiment
)

Returns True if version implements given experiment.

match

View source

match(
    other_version
)

Returns True if other_version matches.

Args:

  • other_version: string, of the form "x[.y[.x]]" where {x,y,z} can be a number or a wildcard.