43 lines
941 B
C++
43 lines
941 B
C++
//
|
|
// Copyright © 2017 Arm Ltd. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
//
|
|
|
|
#include "../DriverTestHelpers.hpp"
|
|
#include "../Convolution2D.hpp"
|
|
#include "../../1.0/HalPolicy.hpp"
|
|
|
|
#include <boost/test/unit_test.hpp>
|
|
#include <log/log.h>
|
|
|
|
#include <OperationsUtils.h>
|
|
|
|
BOOST_AUTO_TEST_SUITE(Convolution2DTests)
|
|
|
|
using namespace android::hardware;
|
|
using namespace driverTestHelpers;
|
|
using namespace armnn_driver;
|
|
|
|
namespace driverTestHelpers
|
|
{
|
|
|
|
void SetModelFp16Flag(V1_0::Model&, bool)
|
|
{
|
|
// Nothing to do, the V1_0::Model does not support fp16 precision relaxation.
|
|
// This function is used for compatibility only.
|
|
}
|
|
|
|
} // namespace driverTestHelpers
|
|
|
|
BOOST_AUTO_TEST_CASE(ConvValidPadding_Hal_1_0)
|
|
{
|
|
PaddingTestImpl<hal_1_0::HalPolicy>(android::nn::kPaddingValid);
|
|
}
|
|
|
|
BOOST_AUTO_TEST_CASE(ConvSamePadding_Hal_1_0)
|
|
{
|
|
PaddingTestImpl<hal_1_0::HalPolicy>(android::nn::kPaddingSame);
|
|
}
|
|
|
|
BOOST_AUTO_TEST_SUITE_END()
|