// // Copyright © 2021 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // #include "ShapeTestHelper.hpp" #include namespace armnnDelegate { void ShapeSimpleTest(std::vector& backends) { std::vector inputShape{ 1, 3, 2, 3 }; std::vector inputValues{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, }; std::vector expectedOutputShape{ 4 }; std::vector expectedOutputValues{ 1, 3, 2, 3 }; ShapeTest(::tflite::TensorType_INT32, ::tflite::TensorType_INT32, backends, inputShape, inputValues, expectedOutputValues, expectedOutputShape); } // SHAPE Test Suite TEST_SUITE("SHAPE_CpuRefTests") { TEST_CASE("SHAPE_Simple_CpuRef_Test") { std::vector backends = { armnn::Compute::CpuRef }; ShapeSimpleTest(backends); } } // End of SHAPE Test Suite } // namespace armnnDelegate