Added print statements to identify summaries

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2019-05-08 14:05:38 +02:00
parent d7c81791e2
commit d2ba84449c

View File

@ -196,8 +196,10 @@ def _predict_one_epoch(dataset: tf.data.Dataset,
decoded_predictions_batch.append(result) decoded_predictions_batch.append(result)
del result del result
else: else:
print("Before network call")
trs.print_diff(orig_summary) trs.print_diff(orig_summary)
result = np.array(ssd(inputs)) result = np.array(ssd(inputs))
print("After network call")
trs.print_diff(orig_summary) trs.print_diff(orig_summary)
decoded_predictions_batch.append(result) decoded_predictions_batch.append(result)
del result del result
@ -221,6 +223,7 @@ def _predict_one_epoch(dataset: tf.data.Dataset,
context.context()._clear_caches() context.context()._clear_caches()
gc.collect() gc.collect()
print("After GC")
trs.print_diff(orig_summary) trs.print_diff(orig_summary)
epoch_end_time = time.time() epoch_end_time = time.time()