Clarify ResourceVariable specification
authorIgor Ganichev <iga@google.com>
Mon, 2 Apr 2018 23:21:37 +0000 (16:21 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Mon, 2 Apr 2018 23:23:35 +0000 (16:23 -0700)
PiperOrigin-RevId: 191365224

tensorflow/python/ops/resource_variable_ops.py

index 2f39ea2..07e25e5 100644 (file)
@@ -171,7 +171,9 @@ class ResourceVariable(variables.Variable):
   to see all modifications to the value of the variable which happen in any
   operation on which the read_value depends on (either directly, indirectly, or
   via a control dependency) and guaranteed to not see any modification to the
-  value of the variable on which the read_value operation does not depend on.
+  value of the variable from operations that depend on the read_value operation.
+  Updates from operations that have no dependency relationship to the read_value
+  operation might or might not be visible to read_value.
 
   For example, if there is more than one assignment to a ResourceVariable in
   a single session.run call there is a well-defined value for each operation