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

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -

angular - DownloadURL return null in below code -