xref: /aosp_15_r20/external/android-nn-driver/test/1.0/Convolution2D.cpp (revision 3e777be0405cee09af5d5785ff37f7cfb5bee59a)
1 //
2 // Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #include "../Convolution2D.hpp"
7 
8 #include <log/log.h>
9 
10 #include <OperationsUtils.h>
11 
12 using namespace android::hardware;
13 using namespace driverTestHelpers;
14 using namespace armnn_driver;
15 
16 namespace driverTestHelpers
17 {
18 
SetModelFp16Flag(V1_0::Model &,bool)19 void SetModelFp16Flag(V1_0::Model&, bool)
20 {
21     // Nothing to do, the V1_0::Model does not support fp16 precision relaxation.
22     // This function is used for compatibility only.
23 }
24 
25 } // namespace driverTestHelpers
26 
27 DOCTEST_TEST_SUITE("Convolution2DTests_1.0")
28 {
29 
30 DOCTEST_TEST_CASE("ConvValidPadding_Hal_1_0")
31 {
32     PaddingTestImpl<hal_1_0::HalPolicy>(android::nn::kPaddingValid);
33 }
34 
35 DOCTEST_TEST_CASE("ConvSamePadding_Hal_1_0")
36 {
37     PaddingTestImpl<hal_1_0::HalPolicy>(android::nn::kPaddingSame);
38 }
39 
40 }
41