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:
090d21c
)
refine by using iterator of partitioned variable
author
wangsiyu
<siyu.wsy@gmail.com>
Fri, 4 May 2018 02:52:26 +0000
(10:52 +0800)
committer
wangsiyu
<siyu.wsy@gmail.com>
Fri, 4 May 2018 02:52:26 +0000
(10:52 +0800)
tensorflow/python/layers/base.py
patch
|
blob
|
history
diff --git
a/tensorflow/python/layers/base.py
b/tensorflow/python/layers/base.py
index
c050e6b
..
f7b2e47
100644
(file)
--- a/
tensorflow/python/layers/base.py
+++ b/
tensorflow/python/layers/base.py
@@
-358,7
+358,7
@@
def _add_elements_to_collection(elements, collection_list):
def _should_add_regularizer(variable, existing_variable_set):
result = True
if isinstance(variable, tf_variables.PartitionedVariable):
- for var in variable
._get_variable_list()
:
+ for var in variable:
if var in existing_variable_set:
result = False
break