From 0637bf38b24bba3a3d88f34ed956111a3abddda2 Mon Sep 17 00:00:00 2001 From: Cathal Corbett Date: Tue, 20 Dec 2022 18:35:34 +0000 Subject: IVGCVSW-7211 Fix float16 operators being wrongly unsupported with android-nn-driver. !armnn:8862 * Added float16 mean test cases. * Float16 CTS/CTS pass on CpuAcc. Signed-off-by: Cathal Corbett Change-Id: Ibd9021d0ae4a205cc2c91555f3ae00c6dba84609 --- test/TestHalfTensor.cpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 test/TestHalfTensor.cpp (limited to 'test/TestHalfTensor.cpp') diff --git a/test/TestHalfTensor.cpp b/test/TestHalfTensor.cpp new file mode 100644 index 00000000..12cdc427 --- /dev/null +++ b/test/TestHalfTensor.cpp @@ -0,0 +1,33 @@ +// +// Copyright © 2022 Arm Ltd and Contributors. All rights reserved. +// SPDX-License-Identifier: MIT +// + +#include "TestHalfTensor.hpp" + +namespace driverTestHelpers +{ + +hidl_vec TestHalfTensor::GetDimensions() const +{ + hidl_vec dimensions; + dimensions.resize(m_Shape.GetNumDimensions()); + for (uint32_t i=0; i