<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/core/utils/version.py#L127-L241) |

Dataset version MAJOR.MINOR.PATCH.

    tfds.core.Version(
        version: VersionOrStr, experiments=None, tfds_version_to_prepare=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `version` | string. Eg: "1.2.3". |
| `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. |

<br />

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `tuple` | <br /> <br /> |

<br />

## Methods

### `implements`

[View source](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/core/utils/version.py#L169-L171)

    implements(
        experiment
    )

Returns True if version implements given experiment.

### `is_valid`

[View source](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/core/utils/version.py#L231-L241)

    @classmethod
    is_valid(
        version: (VersionOrStr | None)
    ) -> bool

Returns True if the version can be parsed.

### `match`

[View source](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/core/utils/version.py#L217-L229)

    match(
        other_version
    ) -> bool

Returns True if other_version matches.

<br />

<br />

<br />

| Args ||
|---|---|
| `other_version` | string, of the form "x\[.y\[.x\]\]" where {x,y,z} can be a number or a wildcard. |

<br />

### `__eq__`

[View source](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/core/utils/version.py#L192-L196)

    __eq__(
        other
    )

Return self==value.

### `__ge__`

[View source](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/core/utils/version.py#L210-L212)

    __ge__(
        other
    )

Return self\>=value.

### `__gt__`

[View source](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/core/utils/version.py#L206-L208)

    __gt__(
        other
    )

Return self\>value.

### `__le__`

[View source](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/core/utils/version.py#L202-L204)

    __le__(
        other
    )

Return self\<=value.

### `__lt__`

[View source](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/core/utils/version.py#L198-L200)

    __lt__(
        other
    )

Return self\<value.