diff options
author | Alexandre Passos <apassos@google.com> | 2018-02-05 14:02:36 -0800 |
---|---|---|
committer | Jonathan Hseu <vomjom@vomjom.net> | 2018-02-05 14:02:36 -0800 |
commit | ce6c6c4c12175490a05dc73a4d9122e551f662eb (patch) | |
tree | 3d876250476c43f89b582034156ca818e9373b1e | |
parent | a2d007b6bcdc76488692310e4c12ae010b6c9d32 (diff) |
Propagate the name on resource variable assign (#16714)
-rw-r--r-- | tensorflow/python/ops/state_ops.py | 2 |
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") |