Does tensorflow recompute these values? -


if call x,y = sess.run([x,f(x)]), x computed once or twice? i'm asking because in case value of x not deterministic, , it's necessary f evaluated on same 'instance' of x.

to make sure f uses current x can set dependencies.

with tf.control_dependencies([x]):     y = f(x) x, y_ = sess.run([x, y]) 

Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -