<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/models/blob/v2.20.0/official/core/train_utils.py#L394-L402) |

Serializes and saves the experiment config.

    tfm.core.train_utils.serialize_config(
        params: https://www.tensorflow.org/api_docs/python/tfm/core/base_trainer/ExperimentConfig,
        model_dir: str
    )