tf.data.experimental.from_variant

Constructs a dataset from the given variant and (nested) structure.

Compat aliases for migration

See Migration guide for more details.

tf.compat.v1.data.experimental.from_variant

variant A scalar tf.variant tensor representing a dataset.
structure A (nested) structure of tf.TypeSpec objects representing the structure of each element in the dataset.

A tf.data.Dataset instance.