TensorFlow 2.0 Beta is available Learn more

tf.data.experimental.get_structure

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
tf.data.experimental.get_structure(dataset_or_iterator)
View source on GitHub

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.