tf.raw_ops.RandomDatasetV2

Creates a Dataset that returns pseudorandom numbers.

Creates a Dataset that returns a stream of uniformly distributed pseudorandom 64-bit signed integers. It accepts a boolean attribute that determines if the random number generators are re-applied at each epoch. The default value is True which means that the seeds are applied and the same sequence of random numbers are generated at each epoch. If set to False, the seeds are not re-applied and a different sequence of random numbers are generated at each epoch.

In the TensorFlow Python API, you can instantiate this dataset via the class tf.data.experimental.RandomDatasetV2.

seedA Tensor of type int64. A scalar seed for the random number generator. If either seed or seed2 is set to be non-zero, the random number generator is seeded by the given seed. Otherwise, a random seed is used.
seed2A Tensor of type int64. A second scalar seed to avoid seed collision.
seed_generatorA Tensor of type resource. A resource for the random number seed generator.
output_typesA list of tf.DTypes that has length >= 1.
output_shapesA list of shapes (each a tf.TensorShape or list of ints) that has length >= 1.
rerandomize_each_iterationAn optional bool. Defaults to False. A boolean attribute to rerandomize the sequence of random numbers generated at each epoch.
metadataAn optional string. Defaults to "".
nameA name for the operation (optional).

A Tensor of type variant.