From b54c644f1186018b9a3a93fa94c351cc3f1a68f0 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Wed, 3 Apr 2019 13:18:14 +0100 Subject: COMPMID-2011: ResNet50 returns wrong result Change-Id: I55449d2ae834c27d6d8b49db93a3f0b00b5b7e3e Signed-off-by: Georgios Pinitas Reviewed-on: https://review.mlplatform.org/c/940 Reviewed-by: Michalis Spyrou Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins --- utils/GraphUtils.cpp | 4 ++-- utils/GraphUtils.h | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'utils') diff --git a/utils/GraphUtils.cpp b/utils/GraphUtils.cpp index 26ea02a9ff..6be289a7e1 100644 --- a/utils/GraphUtils.cpp +++ b/utils/GraphUtils.cpp @@ -77,8 +77,8 @@ void TFPreproccessor::preprocess(ITensor &tensor) }); } -CaffePreproccessor::CaffePreproccessor(std::array mean, float scale, bool bgr) - : _mean(mean), _scale(scale), _bgr(bgr) +CaffePreproccessor::CaffePreproccessor(std::array mean, bool bgr, float scale) + : _mean(mean), _bgr(bgr), _scale(scale) { if(_bgr) { diff --git a/utils/GraphUtils.h b/utils/GraphUtils.h index 4ae484f430..88221c7dc8 100644 --- a/utils/GraphUtils.h +++ b/utils/GraphUtils.h @@ -62,17 +62,17 @@ class CaffePreproccessor : public IPreprocessor public: /** Default Constructor * - * @param mean Mean array in RGB ordering - * @param scale Scale value - * @param bgr Boolean specifying if the preprocessing should assume BGR format + * @param[in] mean Mean array in RGB ordering + * @param[in] bgr Boolean specifying if the preprocessing should assume BGR format + * @param[in] scale Scale value */ - CaffePreproccessor(std::array mean = std::array { { 0, 0, 0 } }, float scale = 1.f, bool bgr = true); + CaffePreproccessor(std::array mean = std::array { { 0, 0, 0 } }, bool bgr = true, float scale = 1.f); void preprocess(ITensor &tensor) override; private: std::array _mean; - float _scale; bool _bgr; + float _scale; }; /** TF preproccessor */ -- cgit v1.2.1