Commit 7632ca9f authored by Yuxin Wu's avatar Yuxin Wu

Dont use all_variables

parent b0fb5f3f
...@@ -66,7 +66,7 @@ class GraphVarParam(HyperParam): ...@@ -66,7 +66,7 @@ class GraphVarParam(HyperParam):
def setup_graph(self): def setup_graph(self):
""" Will setup the assign operator for that variable. """ """ Will setup the assign operator for that variable. """
all_vars = tf.all_variables() all_vars = tf.global_variables() + tf.local_variables()
for v in all_vars: for v in all_vars:
if v.name == self.var_name: if v.name == self.var_name:
self.var = v self.var = v
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment