![]() |
Returns the type specification of an element of a Dataset
or Iterator
.
Aliases:
tf.data.experimental.get_structure(dataset_or_iterator)
Args:
dataset_or_iterator
: Atf.data.Dataset
ortf.data.Iterator
.
Returns:
A nested structure of tf.TypeSpec
objects matching the structure of an
element of dataset_or_iterator
and spacifying the type of individal
components.
Raises:
TypeError
: Ifdataset_or_iterator
is not aDataset
orIterator
object.