Module: tf.random.experimental

Public API for tf._api.v2.random.experimental namespace

Classes

class Algorithm: A random-number-generation (RNG) algorithm.

class Generator: Random-number generator.

Functions

create_rng_state(...): Creates a RNG state from an integer or a vector.

get_global_generator(...): Retrieves the global generator.

index_shuffle(...): Outputs the position of index in a permutation of [0, ..., max_index].

set_global_generator(...): Replaces the global generator with another Generator object.

stateless_fold_in(...): Folds in data to an RNG seed to form a new RNG seed.

stateless_shuffle(...): Randomly and deterministically shuffles a tensor along its first dimension.

stateless_split(...): Splits an RNG seed into num new seeds by adding a leading axis.