<br />

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

    tfm.utils.serialize_regularizer(
        regularizer, use_legacy_format=False
    )