aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKevin May <kevin.may@arm.com>2021-04-22 16:51:18 +0100
committerKevin May <kevin.may@arm.com>2021-04-27 15:02:45 +0000
commit4a621c43174b6bdd9dc0bff839b245bc2139d6a6 (patch)
tree88b2bbc803284e7c5051c8812a468e5f3c834b9c /include
parent65542e4f250a66fd0aba0c1b509e11cb518ee2d5 (diff)
downloadarmnn-4a621c43174b6bdd9dc0bff839b245bc2139d6a6.tar.gz
IVGCVSW-5719 Remove Quantizer
Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I8a29df03afdd6f1cc8413b219e179272cd2d51cf
Diffstat (limited to 'include')
-rw-r--r--include/armnn/INetwork.hpp1
-rw-r--r--include/armnnQuantizer/INetworkQuantizer.hpp57
2 files changed, 0 insertions, 58 deletions
diff --git a/include/armnn/INetwork.hpp b/include/armnn/INetwork.hpp
index 2cdbe1a939..0dc1ba471f 100644
--- a/include/armnn/INetwork.hpp
+++ b/include/armnn/INetwork.hpp
@@ -694,7 +694,6 @@ public:
protected:
~INetwork();
- friend class NetworkQuantizer;
friend void VisitLayersTopologically(const INetwork* inputNetwork, IStrategy& strategy);
friend class TestConnectionPreservation;
friend TensorInfo GetInputTensorInfo(const INetwork* network);
diff --git a/include/armnnQuantizer/INetworkQuantizer.hpp b/include/armnnQuantizer/INetworkQuantizer.hpp
deleted file mode 100644
index 5fc5763216..0000000000
--- a/include/armnnQuantizer/INetworkQuantizer.hpp
+++ /dev/null
@@ -1,57 +0,0 @@
-//
-// Copyright © 2017 Arm Ltd. All rights reserved.
-// SPDX-License-Identifier: MIT
-//
-
-#pragma once
-
-#include <armnn/INetwork.hpp>
-#include <armnn/Types.hpp>
-#include <armnn/Tensor.hpp>
-
-namespace armnn
-{
-
-struct QuantizerOptions
-{
- QuantizerOptions() : QuantizerOptions(DataType::QAsymmU8, false) {}
-
- QuantizerOptions(DataType activationFormat) : QuantizerOptions(activationFormat, false) {}
-
- QuantizerOptions(DataType activationFormat, bool preserveType)
- : m_ActivationFormat(activationFormat)
- , m_PreserveType(preserveType) {}
-
- DataType m_ActivationFormat;
- bool m_PreserveType;
-};
-
-using INetworkQuantizerPtr = std::unique_ptr<class INetworkQuantizer, void(*)(INetworkQuantizer* quantizer)>;
-
-/// Quantizer class Quantizes a float32 InputNetwork
-class INetworkQuantizer
-{
-public:
- /// Create Quantizer object and return raw pointer
- static INetworkQuantizer* CreateRaw(INetwork* inputNetwork, const QuantizerOptions& options = QuantizerOptions());
-
- /// Create Quantizer object wrapped in unique_ptr
- static INetworkQuantizerPtr Create(INetwork* inputNetwork, const QuantizerOptions& options = QuantizerOptions());
-
- /// Destroy Quantizer object
- static void Destroy(INetworkQuantizer* quantizer);
-
- /// Overrides the default quantization values for the input layer with the given id
- virtual void OverrideInputRange(LayerBindingId layerId, float min, float max) = 0;
-
- /// Refine input network with a set of refinement data for specified LayerBindingId
- virtual void Refine(const InputTensors& inputTensors) = 0;
-
- /// Extract final quantized network
- virtual INetworkPtr ExportNetwork() = 0;
-
-protected:
- virtual ~INetworkQuantizer() {}
-};
-
-} //namespace armnn