diff options
author | Colm Donelan <colm.donelan@arm.com> | 2024-01-22 10:07:14 +0000 |
---|---|---|
committer | TeresaARM <teresa.charlinreyes@arm.com> | 2024-02-07 15:37:05 +0000 |
commit | 7bcae3c835468d9b0770514dc7127f02d47cec5f (patch) | |
tree | 03fe2da7324715be89c1c0ba476b083558c158ed /delegate/test/TileTest.cpp | |
parent | a52bca23d225144e92f521341718a70489d5c217 (diff) | |
download | armnn-7bcae3c835468d9b0770514dc7127f02d47cec5f.tar.gz |
IVGCVSW-7675 Rework more DelegateUnitTests so backends are subcases.
The intent of this change is to remove the per backend test cases in
the delegate unit tests. They will be replaced by using DocTest
SUBCASES. The sub cases are paramaterized by the available backends.
The list of available backends are determined by the compilation flags.
Signed-off-by: Colm Donelan <colm.donelan@arm.com>
Change-Id: I6dd0369491c4582b8e2467b911dfd085dddcf576
Diffstat (limited to 'delegate/test/TileTest.cpp')
-rw-r--r-- | delegate/test/TileTest.cpp | 42 |
1 files changed, 6 insertions, 36 deletions
diff --git a/delegate/test/TileTest.cpp b/delegate/test/TileTest.cpp index ef803964fd..545ceeb5d5 100644 --- a/delegate/test/TileTest.cpp +++ b/delegate/test/TileTest.cpp @@ -1,21 +1,15 @@ // -// Copyright © 2023 Arm Ltd and Contributors. All rights reserved. +// Copyright © 2023-2024 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // #include "TileTestHelper.hpp" -#include <armnn_delegate.hpp> -#include <flatbuffers/flatbuffers.h> -#include <tensorflow/lite/interpreter.h> -#include <tensorflow/lite/kernels/register.h> -#include <tensorflow/lite/model.h> -#include <tensorflow/lite/version.h> #include <doctest/doctest.h> namespace armnnDelegate { -void TileFloat32Test(std::vector<armnn::BackendId>& backends) +void TileFloat32Test() { // Set input data std::vector<float> inputValues = @@ -43,7 +37,6 @@ void TileFloat32Test(std::vector<armnn::BackendId>& backends) const std::vector<int32_t> expectedOutputShape = { 4, 6 }; TileFP32TestImpl(tflite::BuiltinOperator_TILE, - backends, inputValues, inputShape, multiplesValues, @@ -52,37 +45,14 @@ void TileFloat32Test(std::vector<armnn::BackendId>& backends) expectedOutputShape); } -TEST_SUITE("TileTests_GpuAccTests") +TEST_SUITE("TileTestsTests") { - TEST_CASE ("Tile_Float32_GpuAcc_Test") + TEST_CASE ("Tile_Float32_Test") { - std::vector<armnn::BackendId> backends = { armnn::Compute::GpuAcc }; - TileFloat32Test(backends); + TileFloat32Test(); } -} // TEST_SUITE("Tile_Float32_GpuAcc_Test") - -TEST_SUITE("TileTests_CpuAccTests") -{ - - TEST_CASE ("Tile_Float32_CpuAcc_Test") - { - std::vector<armnn::BackendId> backends = { armnn::Compute::CpuAcc }; - TileFloat32Test(backends); - } - -} // TEST_SUITE("Tile_Float32_CpuAcc_Test") - -TEST_SUITE("TileTests_CpuRefTests") -{ - - TEST_CASE ("Tile_Float32_CpuRef_Test") - { - std::vector<armnn::BackendId> backends = { armnn::Compute::CpuRef }; - TileFloat32Test(backends); - } - -} // TEST_SUITE("Tile_Float32_CpuRef_Test") +} // TEST_SUITE("Tile_Float32_Test") } // namespace armnnDelegate
\ No newline at end of file |