W3cubDocs

/TensorFlow

Module: tf.compat.v1.nest

Public API for tf._api.v2.nest namespace

Functions

assert_same_structure(...): Asserts that two structures are nested in the same way.

flatten(...): Returns a flat list from a given structure.

is_nested(...): Returns true if its input is a nested structure.

map_structure(...): Creates a new structure by applying func to each atom in structure.

pack_sequence_as(...): Returns a given flattened sequence packed into a given structure.

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/compat/v1/nest