tf.compat.v1.set_random_seed

Sets the graph-level random seed for the default graph.

Migrate to TF2

'tf.compat.v1.set_random_seed' is compatible with eager mode. However, in eager mode this API will set the global seed instead of the graph-level seed of the default graph. In TF2 this API is changed to tf.random.set_seed.