TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tfds.core.Version

View source

Class Version

Dataset version MAJOR.MINOR.PATCH.

__init__

View source

__init__(
    version_str,
    experiments=None
)

Properties

tuple

Methods

__eq__

View source

__eq__(other)

__ge__

View source

__ge__(other)

__gt__

View source

__gt__(other)

__le__

View source

__le__(other)

__lt__

View source

__lt__(other)

__ne__

View source

__ne__(other)

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.