aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSiCong Li <sicong.li@arm.com>2023-12-06 17:24:20 +0000
committerSiCong Li <sicong.li@arm.com>2023-12-07 12:50:27 +0000
commita4a2354be8de6364552896e9f1c9ac222ea52eb9 (patch)
tree649548ce05d07c4c39c8d1d0067953056bb162e6 /examples
parent47370943471c98b5ed4c954b350b925d368a810e (diff)
downloadComputeLibrary-a4a2354be8de6364552896e9f1c9ac222ea52eb9.tar.gz
Use the correct output qinfo for ssd_mobilenet QASYMM8_SIGNED
Resolves COMPMID-6736 Signed-off-by: SiCong Li <sicong.li@arm.com> Change-Id: Ib887c56afcf481366f1fa9c9f456a43c27269e52 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/10844 Reviewed-by: Jakub Sujak <jakub.sujak@arm.com> Benchmark: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/graph_ssd_mobilenet.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/graph_ssd_mobilenet.cpp b/examples/graph_ssd_mobilenet.cpp
index 5162fe6890..6218d47dd6 100644
--- a/examples/graph_ssd_mobilenet.cpp
+++ b/examples/graph_ssd_mobilenet.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2022 Arm Limited.
+ * Copyright (c) 2018-2023 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
+#include "arm_compute/core/utils/quantization/AsymmHelpers.h"
#include "arm_compute/graph.h"
#include "support/ToolchainSupport.h"
@@ -757,7 +758,8 @@ private:
std::move(conv_16_2_class_pre), std::move(conv_17_2_class_pre))
.set_name("ClassPrediction/concat");
- const QuantizationInfo logistic_out_qinfo = QuantizationInfo(0.00390625f, 0);
+ const QuantizationInfo logistic_out_qinfo = QuantizationInfo(
+ 0.00390625f, quantization::get_min_max_values_from_quantized_data_type(common_params.data_type).first);
class_pred << ActivationLayer(ActivationLayerInfo(ActivationLayerInfo::ActivationFunction::LOGISTIC),
logistic_out_qinfo)
.set_name("ClassPrediction/logistic");