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

git - TortoiseGit does not show commit log properly -

string - Using python and postgres, variables within execute function? -