// // Copyright © 2022 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // #pragma once #include #include "DriverTestHelpers.hpp" #include using Half = half_float::half; namespace driverTestHelpers { class TestHalfTensor { public: TestHalfTensor(const armnn::TensorShape & shape, const std::vector & data) : m_Shape{shape} , m_Data{data} { DOCTEST_CHECK(m_Shape.GetNumElements() == m_Data.size()); } hidl_vec GetDimensions() const; unsigned int GetNumElements() const; const Half * GetData() const; private: armnn::TensorShape m_Shape; std::vector m_Data; }; } // driverTestHelpers