TensorFlow 2.0 Beta is available Learn more

tf.random.experimental.create_rng_state

TensorFlow 2.0 version View source on GitHub

Creates a RNG state.

Aliases:

  • tf.compat.v1.random.experimental.create_rng_state
  • tf.compat.v2.random.experimental.create_rng_state
tf.random.experimental.create_rng_state(
    seed,
    algorithm
)

Args:

  • seed: an integer or 1-D tensor.
  • algorithm: an integer representing the RNG algorithm.

Returns:

a 1-D tensor whose size depends on the algorithm.