From 6853d862ed9b5d2bf08400f2a068bd34d72e2136 Mon Sep 17 00:00:00 2001 From: Matthias Bisping Date: Fri, 25 Mar 2022 15:01:54 +0100 Subject: [PATCH] added comment motivating the implementation of the predict function of the adapter patch --- image_prediction/estimator/adapter/patch.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/image_prediction/estimator/adapter/patch.py b/image_prediction/estimator/adapter/patch.py index 6385d00..6bbf40b 100644 --- a/image_prediction/estimator/adapter/patch.py +++ b/image_prediction/estimator/adapter/patch.py @@ -16,5 +16,7 @@ class EstimatorAdapterPatch(EstimatorAdapter): self.__output_batch = output_batch def predict(self, batch): + # Call the internal estimator, so mechanical issues would surface self.estimator.predict(batch) + # but discard the returned values for the purposes of testing the interface that calls the adapter return self.__output_batch