projects
/
platform
/
upstream
/
tensorflow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2d007b
)
Propagate the name on resource variable assign (#16714)
author
Alexandre Passos
<apassos@google.com>
Mon, 5 Feb 2018 22:02:36 +0000
(14:02 -0800)
committer
Jonathan Hseu
<vomjom@vomjom.net>
Mon, 5 Feb 2018 22:02:36 +0000
(14:02 -0800)
tensorflow/python/ops/state_ops.py
patch
|
blob
|
history
diff --git
a/tensorflow/python/ops/state_ops.py
b/tensorflow/python/ops/state_ops.py
index
3cc76fd
..
f00213e
100644
(file)
--- 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")