aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSheri Zhang <sheri.zhang@arm.com>2020-11-02 17:54:14 +0000
committerSheri Zhang <sheri.zhang@arm.com>2020-11-03 13:47:35 +0000
commitda4b1b2055d96aaf73704eb9b0b82d74dc2d699c (patch)
tree70d9889ae9b9452c1a69816ff156292205adcf5b
parent329485e8e03c1ee9d2abc766c45c098cf3949c3b (diff)
downloadComputeLibrary-da4b1b2055d96aaf73704eb9b0b82d74dc2d699c.tar.gz
COMPMID-3851: Fix output quantization info for SoftmaxLayerNode
Signed-off-by: Sheri Zhang <sheri.zhang@arm.com> Change-Id: I74b9495dcfcee619fda6f781845711c71eaaa5a6 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4306 Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
-rw-r--r--src/graph/nodes/SoftmaxLayerNode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graph/nodes/SoftmaxLayerNode.cpp b/src/graph/nodes/SoftmaxLayerNode.cpp
index fb907f4d23..031166993a 100644
--- a/src/graph/nodes/SoftmaxLayerNode.cpp
+++ b/src/graph/nodes/SoftmaxLayerNode.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018 Arm Limited.
+ * Copyright (c) 2018-2020 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -64,7 +64,7 @@ TensorDescriptor SoftmaxLayerNode::configure_output(size_t idx) const
ARM_COMPUTE_ERROR_ON(src == nullptr);
TensorDescriptor out_desc = src->desc();
- out_desc.quant_info = QuantizationInfo(1.f / 256.f, 0);
+ out_desc.quant_info = get_softmax_output_quantization_info(out_desc.data_type, false);
return out_desc;
}