TensorFlow 1 version | View source on GitHub |
Constructs a dataset from the given variant and (nested) structure.
tf.data.experimental.from_variant(
variant, structure
)
Args | |
---|---|
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.
|
Returns | |
---|---|
A tf.data.Dataset instance.
|