aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/StaticRangeVisitor.cpp
diff options
context:
space:
mode:
authorMike Kelly <mike.kelly@arm.com>2021-01-14 10:04:56 +0000
committermike.kelly <mike.kelly@arm.com>2021-01-14 20:12:49 +0000
commitc5e5a04bd26c2d1838828ba291464967a3e20f3f (patch)
treead7354097ef3053416cf2162aa8e26f0f0f5b578 /src/armnn/StaticRangeVisitor.cpp
parentec27971facf490fdafd1da1172fa88327808866a (diff)
downloadarmnn-c5e5a04bd26c2d1838828ba291464967a3e20f3f.tar.gz
MLCE-325 ArmnnQuantizer incorrectly Quantizes all DataTypes
* ArmnnQuantizer incorrectly converts boolean or integer DataTypes to quantized DataTypes. This breaks layers like ArgMinMax where the output contains the index of an element along an axis. Signed-off-by: Mike Kelly <mike.kelly@arm.com> Change-Id: I272c3d0f48bf884a2480bfa43eb14ec265fcda6b
Diffstat (limited to 'src/armnn/StaticRangeVisitor.cpp')
-rw-r--r--src/armnn/StaticRangeVisitor.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/armnn/StaticRangeVisitor.cpp b/src/armnn/StaticRangeVisitor.cpp
index 0e820c3202..210c666739 100644
--- a/src/armnn/StaticRangeVisitor.cpp
+++ b/src/armnn/StaticRangeVisitor.cpp
@@ -1,5 +1,5 @@
//
-// Copyright © 2017 Arm Ltd. All rights reserved.
+// Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
@@ -107,11 +107,20 @@ void StaticRangeVisitor::VisitActivationLayer(const IConnectableLayer* layer,
}
}
-void StaticRangeVisitor::VisitFullyConnectedLayer(const IConnectableLayer *layer,
+void StaticRangeVisitor::VisitArgMinMaxLayer(const armnn::IConnectableLayer* layer,
+ const armnn::ArgMinMaxDescriptor& argMinMaxDescriptor,
+ const char* name)
+{
+ IgnoreUnused(argMinMaxDescriptor);
+ IgnoreUnused(name);
+ ForwardParentParameters(layer);
+}
+
+void StaticRangeVisitor::VisitFullyConnectedLayer(const IConnectableLayer* layer,
const FullyConnectedDescriptor& desc,
const ConstTensor& weights,
const Optional<ConstTensor>& biases,
- const char *name)
+ const char* name)
{
IgnoreUnused(desc);
IgnoreUnused(weights);