Skip to content

Commit

Permalink
no need to control order as tensor can belong to multiple collections…
Browse files Browse the repository at this point in the history
… now (aws#49)
  • Loading branch information
rahul003 authored Jul 29, 2019
1 parent 0e262a2 commit 3187f6a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tornasole_core/save_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@ def __init__(self, collection_manager, include_collections_names,
self.when_nan_tensors = {}

def prepare(self):
# below is to control the order
# in which these collections appear in save_collections
for cname in ['weights', 'gradients', 'bias', 'optimizer_variables']:
if self._should_collection_be_saved(cname):
self.save_collections.append(self.collection_manager.get(cname))

# adding other collections to save_collections
for c_name, c in self.collection_manager.get_collections().items():
if self._should_collection_be_saved(c_name) \
and c not in self.save_collections:
Expand Down

0 comments on commit 3187f6a

Please sign in to comment.