# Module: tf.compat.v1.nest

<br />

Public API for tf._api.v2.nest namespace

## Functions

[`assert_same_structure(...)`](https://www.tensorflow.org/api_docs/python/tf/nest/assert_same_structure): Asserts that two structures are nested in the same way.

[`flatten(...)`](https://www.tensorflow.org/api_docs/python/tf/nest/flatten): Returns a flat list from a given structure.

[`is_nested(...)`](https://www.tensorflow.org/api_docs/python/tf/nest/is_nested): Returns true if its input is a nested structure.

[`map_structure(...)`](https://www.tensorflow.org/api_docs/python/tf/nest/map_structure): Creates a new structure by applying `func` to each atom in `structure`.

[`pack_sequence_as(...)`](https://www.tensorflow.org/api_docs/python/tf/nest/pack_sequence_as): Returns a given flattened sequence packed into a given structure.