tf.data.experimental.from_variant

View source

Constructs a dataset from the given variant and structure.

Aliases:

  • tf.compat.v1.data.experimental.from_variant
  • tf.compat.v2.data.experimental.from_variant
tf.data.experimental.from_variant(
    variant,
    structure
)

Args:

  • variant: A scalar tf.variant tensor representing a dataset.
  • structure: A tf.data.experimental.Structure object representing the structure of each element in the dataset.

Returns:

A tf.data.Dataset instance.

results matching ""

    No results matching ""