From 263d709e7c71823931e2cd0831e60a3f6280eab5 Mon Sep 17 00:00:00 2001 From: Kevin May Date: Tue, 29 Nov 2022 14:34:48 +0000 Subject: 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 Change-Id: Iaa5671374364c531e29e37fdfe40732b4fdbcfcb --- src/backends/aclCommon/ArmComputeTensorUtils.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backends/aclCommon/ArmComputeTensorUtils.hpp') 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, -- cgit v1.2.1