Added print statements to identify summaries
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user