diff options
author | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-02-11 13:24:38 +0000 |
---|---|---|
committer | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-02-14 17:53:55 +0000 |
commit | 5b2159e43a5e078053e706883e3af44ae733b5b9 (patch) | |
tree | 6486b631f32c5f903ba609907ef3aa25002e3daa /src/armnn/StaticRangeVisitor.hpp | |
parent | ec333914d5d38079083bcdb7fc88a54a19ebaa87 (diff) | |
download | armnn-5b2159e43a5e078053e706883e3af44ae733b5b9.tar.gz |
IVGCVSW-2620 Support static quantization of Constant
* Added VisitConstantLayer to QuantizerVisitor
* Added unit tests and refactored QuantizerTest.cpp
* Code cleanup
Change-Id: I118fd2be085fc98879c5cfaa09698a7c98ba13f0
Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Diffstat (limited to 'src/armnn/StaticRangeVisitor.hpp')
-rw-r--r-- | src/armnn/StaticRangeVisitor.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/armnn/StaticRangeVisitor.hpp b/src/armnn/StaticRangeVisitor.hpp index a7028d7a51..2f80dcb45b 100644 --- a/src/armnn/StaticRangeVisitor.hpp +++ b/src/armnn/StaticRangeVisitor.hpp @@ -71,6 +71,10 @@ public: const SoftmaxDescriptor& softmaxDescriptor, const char* name = nullptr) override; + void VisitConstantLayer(const IConnectableLayer* layer, + const ConstTensor& input, + const char* name = nullptr) override; + private: /// Set the range for an output slot on a layer void SetRange(const IConnectableLayer* layer, unsigned int outputIdx, float min, float max); |