# tff.simulation.datasets.flair.write_data

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/federated/blob/v0.87.0 Version 2.0, January 2004 Licensed under the Apache License, Version 2.0 (the) |

Writes the raw FLAIR images to a processed dataset format.

    tff.simulation.datasets.flair.write_data(
        data_dir: str, cache_dir: str
    ) -> None

<br />

<br />

<br />

| ## Args ||
|---|---|
| `data_dir` | The dataset to load FLAIR images from. Note that `write_data` must only be called after `download_data` (and with the same directory). |
| `cache_dir` | The directory used to write the processed FLAIR dataset. |

<br />