blob: 7234e47642743350b71cb6fcf5f9729d3ddcdfe7 [file] [log] [blame]
Michele Di Giorgioba1ffe92018-08-22 14:28:30 +01001/*
Michele Di Giorgiod9eaf612020-07-08 11:12:57 +01002 * Copyright (c) 2018-2020 Arm Limited.
Michele Di Giorgioba1ffe92018-08-22 14:28:30 +01003 *
4 * SPDX-License-Identifier: MIT
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to
8 * deal in the Software without restriction, including without limitation the
9 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10 * sell copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in all
14 * copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 * SOFTWARE.
23 */
24#include "arm_compute/runtime/CL/functions/CLFullyConnectedLayer.h"
Michele Di Giorgioba1ffe92018-08-22 14:28:30 +010025#include "tests/AssetsLibrary.h"
26#include "tests/CL/CLAccessor.h"
27#include "tests/Globals.h"
28#include "tests/Utils.h"
29#include "tests/framework/Asserts.h"
30#include "tests/framework/Macros.h"
31#include "tests/validation/Validation.h"
32#include "tests/validation/fixtures/UNIT/WeightsRetentionFixture.h"
33
34namespace arm_compute
35{
36namespace test
37{
38namespace validation
39{
40namespace
41{
42RelativeTolerance<float> tolerance_f32(0.05f);
43} // namespace
44
45TEST_SUITE(CL)
46TEST_SUITE(UNIT)
47TEST_SUITE(WeightsRetention)
48
49using CLWeightsRetentionFixture = WeightsRetentionReconfigureTestCaseFixture<CLTensor,
50 CLAccessor,
51 CLFullyConnectedLayer>;
52FIXTURE_TEST_CASE(WeightsRetention,
53 CLWeightsRetentionFixture,
Michalis Spyrou80943252019-01-10 17:19:50 +000054 framework::DatasetMode::NIGHTLY)
Michele Di Giorgioba1ffe92018-08-22 14:28:30 +010055{
56 // Validate output
57 validate(CLAccessor(_target), _reference, tolerance_f32);
58}
59
60TEST_SUITE_END()
61TEST_SUITE_END()
62TEST_SUITE_END()
63} // namespace validation
64} // namespace test
65} // namespace arm_compute