aboutsummaryrefslogtreecommitdiff
path: root/include/armnnQuantizer/INetworkQuantizer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/armnnQuantizer/INetworkQuantizer.hpp')
-rw-r--r--include/armnnQuantizer/INetworkQuantizer.hpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/armnnQuantizer/INetworkQuantizer.hpp b/include/armnnQuantizer/INetworkQuantizer.hpp
index 89548d1057..826b077f6e 100644
--- a/include/armnnQuantizer/INetworkQuantizer.hpp
+++ b/include/armnnQuantizer/INetworkQuantizer.hpp
@@ -14,10 +14,16 @@ namespace armnn
struct QuantizerOptions
{
- QuantizerOptions() : m_ActivationFormat(DataType::QuantisedAsymm8) {}
- QuantizerOptions(DataType activationFormat) : m_ActivationFormat(activationFormat) {}
+ QuantizerOptions() : QuantizerOptions(DataType::QuantisedAsymm8, 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)>;