From 817eddd18b7c1c569bb6d284f13bd9d496b415a9 Mon Sep 17 00:00:00 2001 From: Igor Ganichev Date: Mon, 2 Apr 2018 16:21:37 -0700 Subject: [PATCH] Clarify ResourceVariable specification PiperOrigin-RevId: 191365224 --- tensorflow/python/ops/resource_variable_ops.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tensorflow/python/ops/resource_variable_ops.py b/tensorflow/python/ops/resource_variable_ops.py index 2f39ea2..07e25e5 100644 --- a/tensorflow/python/ops/resource_variable_ops.py +++ b/tensorflow/python/ops/resource_variable_ops.py @@ -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 -- 2.7.4