Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stable results with TensorFlow

Tags:

tensorflow

What would be a good way to ensure TensorFlow results persist across different runs? I can't find much information on e.g. seeding random weight initialization, so my results tend to differ with every run.

like image 786
sray Avatar asked Dec 14 '15 22:12

sray


1 Answers

The API method tf.set_random_seed() can be used to set a random seed that will be used in all TensorFlow random operations (including the usual random weight initializers and tf.RandomShuffleQueue).

like image 129
mrry Avatar answered Nov 15 '22 07:11

mrry