vendredi 14 août 2020

How to set random seed in tensorflow

Can someone please tell how to set a random seed in tensor flow? Like in numpy:

np.random.seed(seed = some_number)

I have tried:

with tf.Session() as sess:
tf.set_random_seed(seed = 42) 

but it does not seem to work. Thank you!




Aucun commentaire:

Enregistrer un commentaire