aboutsummaryrefslogtreecommitdiff
path: root/src/backends/aclCommon/ArmComputeTensorUtils.hpp
diff options
context:
space:
mode:
authorKevin May <kevin.may@arm.com>2022-11-29 14:34:48 +0000
committerKevin May <kevin.may@arm.com>2022-12-01 09:38:54 +0000
commit263d709e7c71823931e2cd0831e60a3f6280eab5 (patch)
tree5aaa0e0fe60ebcf0b53e6e4adda1893f932180b5 /src/backends/aclCommon/ArmComputeTensorUtils.hpp
parent1bbfaca49661bb945b199d848b48678f2b44e655 (diff)
downloadarmnn-263d709e7c71823931e2cd0831e60a3f6280eab5.tar.gz
IVGCVSW-7272 Add Exception for handling Fp16 infinity values
* Float values which cannot fit in Half are converted as inf/-inf * Add an InvalidArgumentException for infinity displaying the value and data type Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: Iaa5671374364c531e29e37fdfe40732b4fdbcfcb
Diffstat (limited to 'src/backends/aclCommon/ArmComputeTensorUtils.hpp')
-rw-r--r--src/backends/aclCommon/ArmComputeTensorUtils.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backends/aclCommon/ArmComputeTensorUtils.hpp b/src/backends/aclCommon/ArmComputeTensorUtils.hpp
index ee8240f3b8..fdcd867bba 100644
--- a/src/backends/aclCommon/ArmComputeTensorUtils.hpp
+++ b/src/backends/aclCommon/ArmComputeTensorUtils.hpp
@@ -75,7 +75,7 @@ arm_compute::PermutationVector BuildArmComputeTransposeVector(const armnn::Permu
arm_compute::Size2D BuildArmComputeSize2D(const unsigned int width, const unsigned int height);
/// Gets the appropriate PixelValue for the TensorInfo DataType
-arm_compute::PixelValue GetPixelValue(const arm_compute::ITensorInfo* tensorInfo, float pixelValue);
+arm_compute::PixelValue GetPixelValue(const arm_compute::ITensorInfo* tensorInfo, float value);
/// Computes the depth multiplier parameter for the Depthwise Conv2d ACL workload.
unsigned int ComputeDepthwiseConv2dDepthMultiplier(armnn::DataLayout layout,