aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Alexandre Passos <apassos@google.com>2018-02-05 14:02:36 -0800
committerGravatar Jonathan Hseu <vomjom@vomjom.net>2018-02-05 14:02:36 -0800
commitce6c6c4c12175490a05dc73a4d9122e551f662eb (patch)
tree3d876250476c43f89b582034156ca818e9373b1e
parenta2d007b6bcdc76488692310e4c12ae010b6c9d32 (diff)
Propagate the name on resource variable assign (#16714)
-rw-r--r--tensorflow/python/ops/state_ops.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/python/ops/state_ops.py b/tensorflow/python/ops/state_ops.py
index 3cc76fdbf3..f00213eb88 100644
--- a/tensorflow/python/ops/state_ops.py
+++ b/tensorflow/python/ops/state_ops.py
@@ -278,7 +278,7 @@ def assign(ref, value, validate_shape=None, use_locking=None, name=None):
return gen_state_ops.assign(
ref, value, use_locking=use_locking, name=name,
validate_shape=validate_shape)
- return ref.assign(value)
+ return ref.assign(value, name=name)
@tf_export("count_up_to")