<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/folder_dataset/compute_split_utils.py#L82-L121) |

Compute the split info for the splits in the given data dir.

    tfds.folder_dataset.compute_split_info_from_directory(
        *,
        out_dir: Optional[epath.PathLike] = None,
        data_dir: https://www.tensorflow.org/datasets/api_docs/python/tfds/typing/PathLike,
        filename_template: Union[None, str, https://www.tensorflow.org/datasets/api_docs/python/tfds/core/ShardedFileTemplate] = None
    ) -> Sequence[https://www.tensorflow.org/datasets/api_docs/python/tfds/core/SplitInfo]

<br />

<br />

<br />

| ## Arguments ||
|---|---|
| `out_dir` | directory where to save the metadata. It should be available from the apache beam workers. If not set, apache beam won't be used (only available with some file formats). |
| `data_dir` | directory where the data is. |
| `filename_template` | the template to which the data files correspond. If None, then the default template is used. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| list of split infos for the splits in the given data dir. ||

<br />