Skip to content

Commit

Permalink
fix bug in 552c2b3
Browse files Browse the repository at this point in the history
  • Loading branch information
ppwwyyxx committed Jan 12, 2020
1 parent ffd9eae commit 3c14ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorpack/graph_builder/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _replace_global_by_local(kwargs):
if 'collections' in kwargs:
collections = kwargs['collections']
if not collections:
collections = set(tf.GraphKeys.GLOBAL_VARIABLES)
collections = {tf.GraphKeys.GLOBAL_VARIABLES}
else:
collections = set(collections.copy())
collections.remove(tf.GraphKeys.GLOBAL_VARIABLES)
Expand Down

0 comments on commit 3c14ff6

Please sign in to comment.