Missed TensorFlow World? Check out the recap. Learn more

tf.data.experimental.get_structure

TensorFlow 2.0 version View source on GitHub

Returns the tf.data.experimental.Structure of a Dataset or Iterator.

Aliases:

  • tf.compat.v1.data.experimental.get_structure
  • tf.compat.v2.data.experimental.get_structure
tf.data.experimental.get_structure(dataset_or_iterator)

Args:

Returns:

A tf.data.experimental.Structure representing the structure of the elements of dataset_or_iterator.

Raises:

  • TypeError: If dataset_or_iterator is not a dataset or iterator object.