from __future__ import absolute_import, division, print_function
import tensorflow as tf
print(tf.__version__)
1.12.0
c = tf.random_normal(shape = [], seed = 2)
with tf.Session() as sess:
print(sess.run(c))
print(sess.run(c))
-0.85811085 -0.20793143
tf.reset_default_graph()
c = tf.random_normal(shape = [], seed = 2)
with tf.Session() as sess:
print(sess.run(c))
with tf.Session() as sess:
print(sess.run(c))
print(sess.run(c))
-0.85811085 -0.85811085 -0.20793143
tf.reset_default_graph()
c = tf.random_normal(shape = [], seed = 2)
d = tf.random_normal(shape = [], seed = 2)
with tf.Session() as sess:
print(sess.run(c))
print(sess.run(d))
-0.85811085 -0.85811085
tf.reset_default_graph()
tf.set_random_seed(seed = 2)
c = tf.random_normal(shape = [])
d = tf.random_normal(shape = [])
with tf.Session() as sess:
print(sess.run(c))
print(sess.run(d))
-1.4236197 0.8052349
tf.reset_default_graph()
tf.set_random_seed(seed = 2)
c = tf.random_normal(shape = [])
d = tf.random_normal(shape = [])
with tf.Session() as sess:
print(sess.run(c))
print(sess.run(d))
-1.4236197 0.8052349