# Module: tf_agents.utils.example_encoding

<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) |

Utilities for easily encoding nests of numpy arrays into example protos.

## Functions

[`get_example_decoder(...)`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/utils/example_encoding/get_example_decoder): Get an example decoder function for a nested spec.

[`get_example_encoder(...)`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/utils/example_encoding/get_example_encoder): Get example encoder function for the given spec.

[`get_example_serializer(...)`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/utils/example_encoding/get_example_serializer): Returns string serializer of example protos.

<br />

<br />

<br />

| ## Other Members ||
|---|---|
| absolute_import | Instance of `__future__._Feature` |
| division | Instance of `__future__._Feature` |
| print_function | Instance of `__future__._Feature` |

<br />