Set graph's random seed when training
This commit is contained in:
parent
da135ca3f9
commit
8ebfe80dd4
|
@ -890,6 +890,7 @@ def main(_):
|
|||
if len(FLAGS.worker_hosts) == 0:
|
||||
# Only one local task: this process (default case - no cluster)
|
||||
with tf.Graph().as_default():
|
||||
tf.set_random_seed(FLAGS.random_seed)
|
||||
train()
|
||||
# Now do a final test epoch
|
||||
if FLAGS.test:
|
||||
|
|
Loading…
Reference in New Issue