|View source on GitHub|
tf.identity pointwise to
This utility function provides the exact same behavior as
it generalizes to a wider class of objects, including ordinary tensors,
variables, as well as various types of nested structures. It would typically
be used together with
tf.control_dependencies in non-eager TensorFlow.
source: A nested structure composed of tensors or variables embedded in containers that are compatible with
tf.nest, or instances of
anonymous_tuple.AnonymousTuple. Elements that represent variables have their content extracted prior to identity mapping by first invoking
The result of applying
tf.identity to read all elements of the
pointwise, with the same structure as
TypeError: If types mismatch.