Print new lists after one iteration and garbage collection

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2019-05-01 12:45:21 +02:00
parent c51836f553
commit 0392ea164f

View File

@ -219,11 +219,10 @@ def _predict_one_epoch(dataset: tf.data.Dataset,
all_objects = muppy.get_objects() all_objects = muppy.get_objects()
all_lists = muppy.filter(all_objects, Type=list) all_lists = muppy.filter(all_objects, Type=list)
if lists is None: if lists is None:
lists = all_lists lists = set(all_lists)
else: else:
for l in all_lists: all_lists = set(all_lists)
if l not in lists: print(all_lists.difference(lists))
print(l)
epoch_end_time = time.time() epoch_end_time = time.time()
per_epoch_time = epoch_end_time - epoch_start_time per_epoch_time = epoch_end_time - epoch_start_time