tf.data.experimental.to_variant

Returns a variant representing the given dataset.

datasetA tf.data.Dataset.

A scalar tf.variant tensor representing the given dataset.