aboutsummaryrefslogtreecommitdiff
path: root/src/backends/aclCommon/ArmComputeTensorUtils.cpp
diff options
context:
space:
mode:
authorRyan OShea <Ryan.OShea2@arm.com>2020-01-29 16:19:55 +0000
committerRyan O'Shea <ryan.oshea2@arm.com>2020-01-29 18:16:31 +0000
commit412424c7f3553d7469c17deb2a68d07d15a5602b (patch)
tree32e75ddcbe85131a5186eb07b8315d4b2a88f002 /src/backends/aclCommon/ArmComputeTensorUtils.cpp
parente49755b914a2c8f6f8b836adfcc61bf8f9a5b3a3 (diff)
downloadarmnn-412424c7f3553d7469c17deb2a68d07d15a5602b.tar.gz
IVGCVSW-4149 Enable quantisation multiplier > 1 in all convolutions
Signed-off-by: Ryan OShea <Ryan.OShea2@arm.com> Change-Id: I9652844a868ce8e05c0433c051e7079cf203c422
Diffstat (limited to 'src/backends/aclCommon/ArmComputeTensorUtils.cpp')
-rw-r--r--src/backends/aclCommon/ArmComputeTensorUtils.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/backends/aclCommon/ArmComputeTensorUtils.cpp b/src/backends/aclCommon/ArmComputeTensorUtils.cpp
index 04202ada90..a21de809f7 100644
--- a/src/backends/aclCommon/ArmComputeTensorUtils.cpp
+++ b/src/backends/aclCommon/ArmComputeTensorUtils.cpp
@@ -237,32 +237,5 @@ arm_compute::PixelValue GetPixelValue(arm_compute::ITensor& input, float pixelVa
}
}
-bool IsQuantMultiplierSupported(const TensorInfo& input,
- const TensorInfo& output,
- const TensorInfo& weights)
-{
- constexpr float maxQuantMultiplier = 1.0f;
- if (weights.HasMultipleQuantizationScales())
- {
- for (float weightScale : weights.GetQuantizationScales())
- {
- if ((input.GetQuantizationScale() * weightScale) / output.GetQuantizationScale() > maxQuantMultiplier)
- {
- return false;
- }
- }
- }
- else
- {
- if ((input.GetQuantizationScale() * weights.GetQuantizationScale()) /
- output.GetQuantizationScale() > maxQuantMultiplier)
- {
- return false;
- }
- }
-
- return true;
-}
-
} // namespace armcomputetensorutils
} // namespace armnn