W3cubDocs

/TensorFlow 1.15

Module: tf.nest

Public API for tf.nest namespace.

Functions

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

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

is_nested(...): Returns true if its input is a collections.abc.Sequence (except strings).

map_structure(...): Applies func to each entry in structure and returns a new structure.

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

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/nest