<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/splits.py#L450-L529) |

Split info object.

    tfds.core.SplitDict(
        split_infos: Iterable[SplitInfo], *, dataset_name: (str | None) = None
    )

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `total_num_examples` | Returns the total number of examples. |

<br />

## Methods

### `from_proto`

[View source](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/core/splits.py#L488-L501)

    @classmethod
    from_proto(
        repeated_split_infos: Iterable[proto_lib.SplitInfo],
        filename_template: naming.ShardedFileTemplate
    ) -> SplitDict

Returns a new SplitDict initialized from the `repeated_split_infos`.

### `merge_multiple`

[View source](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/core/splits.py#L512-L529)

    @classmethod
    merge_multiple(
        split_dicts: list[SplitDict]
    ) -> SplitDict

### `to_proto`

[View source](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/core/splits.py#L503-L505)

    to_proto()

Returns a list of SplitInfo protos that we have.

### `update`

[View source](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/core/utils/py_utils.py#L145-L148)

    update(
        other
    )

D.update(\[E, \]\*\*F) -\> None. Update D from dict/iterable E and F.
If E is present and has a .keys() method, then does: for k in E: D\[k\] = E\[k\]
If E is present and lacks a .keys() method, then does: for k, v in E: D\[k\] = v
In either case, this is followed by: for k in F: D\[k\] = F\[k\]

### `__getitem__`

[View source](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/core/splits.py#L471-L486)

    __getitem__(
        key
    ) -> (SplitInfo | SubSplitInfo)

x.**getitem**(y) \<==\> x\[y\]