Re-introduced debug prints
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
@ -181,8 +181,13 @@ def _predict_one_epoch(dataset: tf.data.Dataset,
|
|||||||
# go through the data set
|
# go through the data set
|
||||||
counter = 0
|
counter = 0
|
||||||
import gc
|
import gc
|
||||||
|
from pympler import tracker
|
||||||
|
|
||||||
from tensorflow.python.eager import context
|
from tensorflow.python.eager import context
|
||||||
|
|
||||||
|
trs = tracker.SummaryTracker()
|
||||||
|
trs.print_diff()
|
||||||
|
|
||||||
for inputs in dataset:
|
for inputs in dataset:
|
||||||
decoded_predictions_batch = []
|
decoded_predictions_batch = []
|
||||||
if use_dropout:
|
if use_dropout:
|
||||||
@ -191,7 +196,9 @@ def _predict_one_epoch(dataset: tf.data.Dataset,
|
|||||||
decoded_predictions_batch.append(result)
|
decoded_predictions_batch.append(result)
|
||||||
del result
|
del result
|
||||||
else:
|
else:
|
||||||
|
trs.print_diff()
|
||||||
result = np.array(ssd(inputs))
|
result = np.array(ssd(inputs))
|
||||||
|
trs.print_diff()
|
||||||
decoded_predictions_batch.append(result)
|
decoded_predictions_batch.append(result)
|
||||||
del result
|
del result
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user