diff options
author | Mike Kelly <mike.kelly@arm.com> | 2021-01-14 10:04:56 +0000 |
---|---|---|
committer | mike.kelly <mike.kelly@arm.com> | 2021-01-14 20:12:49 +0000 |
commit | c5e5a04bd26c2d1838828ba291464967a3e20f3f (patch) | |
tree | ad7354097ef3053416cf2162aa8e26f0f0f5b578 /src/armnn/StaticRangeVisitor.hpp | |
parent | ec27971facf490fdafd1da1172fa88327808866a (diff) | |
download | armnn-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.hpp')
-rw-r--r-- | src/armnn/StaticRangeVisitor.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/armnn/StaticRangeVisitor.hpp b/src/armnn/StaticRangeVisitor.hpp index 37ebec8bfe..20e3cb0292 100644 --- a/src/armnn/StaticRangeVisitor.hpp +++ b/src/armnn/StaticRangeVisitor.hpp @@ -1,5 +1,5 @@ // -// Copyright © 2017 Arm Ltd. All rights reserved. +// Copyright © 2017 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // @@ -25,6 +25,10 @@ public: /// Functions to set the Range on a per-layer-type basis void VisitAdditionLayer(const IConnectableLayer* layer, const char* name = nullptr) override; + void VisitArgMinMaxLayer(const IConnectableLayer* layer, + const ArgMinMaxDescriptor& desc, + const char* name = nullptr) override; + void VisitBatchNormalizationLayer(const IConnectableLayer* layer, const BatchNormalizationDescriptor& desc, const ConstTensor& mean, |