View source on GitHub |
Dataset version MAJOR.MINOR.PATCH.
tfds.core.Version(
version: Union[Version, str],
experiments=None,
tfds_version_to_prepare=None
)
Attributes | |
---|---|
tuple
|
Methods
implements
implements(
experiment
)
Returns True if version implements given experiment.
is_valid
@classmethod
is_valid( version: str ) -> bool
Returns True if the version can be parsed.
match
match(
other_version
) -> bool
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. |
__eq__
__eq__(
other
)
Return self==value.
__ge__
__ge__(
other
)
Return self>=value.
__gt__
__gt__(
other
)
Return self>value.
__le__
__le__(
other
)
Return self<=value.
__lt__
__lt__(
other
)
Return self<value.
__ne__
__ne__(
other
)
Return self!=value.