View source on GitHub
|
Sets the graph-level random seed for the default graph.
tf.compat.v1.set_random_seed(
seed
)
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.
View source on GitHub