# tf_agents.utils.example_encoding.get_example_serializer

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/utils/example_encoding.py#L109-L114) |

Returns string serializer of example protos.

    tf_agents.utils.example_encoding.get_example_serializer(
        spec, compress_image=False, image_quality=95
    )