Reproducible results in Tensorflow with tf.set_random_seed

后端 未结 7 1738
死守一世寂寞
死守一世寂寞 2020-11-28 13:28

I am trying to generate N sets of independent random numbers. I have a simple code that shows the problem for 3 sets of 10 random numbers. I notice that even though I use th

7条回答
  •  执笔经年
    2020-11-28 13:58

    For Tensorflow 2.0 tf.random.set_random_seed(seed) changed to tf.random.set_seed(seed).

    see TF docs:

    • r2.0: https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/random/set_seed
    • r1.13: https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/random/set_random_seed

提交回复
热议问题