how to get reproducible result in Tensorflow

后端 未结 1 361
后悔当初
后悔当初 2021-01-13 19:31

I built 5-layer neural network by using tensorflow.

I have a problem to get reproducible results (or stable results).

I found similar questions regarding r

相关标签:
1条回答
  • 2021-01-13 20:24

    It seems that your results are perhaps not reproducible because you are using Saver to write/restore from checkpoint each time? (i.e. the second time that you run the code, the variable values aren't initialized using your random seed -- they are restored from your previous checkpoint)

    Please trim down your code example to just the code necessary to reproduce irreproducibility.

    0 讨论(0)
提交回复
热议问题