blob: 2426ad0dbae946c93fce4eb5cc7e1c0adb8d772f [file] [log] [blame]
Slava Shklyaev871be942018-09-12 14:52:02 +01001/*
2 * Copyright (C) 2018 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef VTS_HAL_NEURALNETWORKS_V1_2_VTS_FUNCTIONAL_MODELS_H
18#define VTS_HAL_NEURALNETWORKS_V1_2_VTS_FUNCTIONAL_MODELS_H
19
20#define LOG_TAG "neuralnetworks_hidl_hal_test"
21
22#include "TestHarness.h"
23
24#include <android/hardware/neuralnetworks/1.0/types.h>
25#include <android/hardware/neuralnetworks/1.1/types.h>
26#include <android/hardware/neuralnetworks/1.2/types.h>
27
28namespace android {
29namespace hardware {
30namespace neuralnetworks {
31namespace V1_2 {
32namespace vts {
33namespace functional {
34
Michael K. Sanders941d61a2018-10-19 14:39:09 +010035using MixedTypedExample = test_helper::MixedTypedExample;
Slava Shklyaev871be942018-09-12 14:52:02 +010036
Michael K. Sanders0fb38922018-11-07 15:53:28 +000037#define FOR_EACH_TEST_MODEL(FN) FN(random_multinomial)
Slava Shklyaev871be942018-09-12 14:52:02 +010038
39#define FORWARD_DECLARE_GENERATED_OBJECTS(function) \
40 namespace function { \
41 extern std::vector<MixedTypedExample> examples; \
42 Model createTestModel(); \
43 }
44
45FOR_EACH_TEST_MODEL(FORWARD_DECLARE_GENERATED_OBJECTS)
46
47#undef FORWARD_DECLARE_GENERATED_OBJECTS
48
49} // namespace functional
50} // namespace vts
51} // namespace V1_2
52} // namespace neuralnetworks
53} // namespace hardware
54} // namespace android
55
56#endif // VTS_HAL_NEURALNETWORKS_V1_2_VTS_FUNCTIONAL_MODELS_H