2 * Copyright (c) 2023 Samsung Electronics Co., Ltd. All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef LUCI_INTERPRETER_TEST_MODELS_ADD_N_KERNEL_BASE_H
18 #define LUCI_INTERPRETER_TEST_MODELS_ADD_N_KERNEL_BASE_H
20 #include "luci_interpreter/test_models/TestDataBase.h"
22 namespace luci_interpreter
27 template <typename T> class TestDataAddNBase : public TestDataBase<T>
30 TestDataAddNBase() = default;
32 const unsigned char *get_model_ptr() override final { return _test_kernel_model_circle; }
34 const std::vector<T> &get_input_data_by_index(int i) override final
45 assert(false && "Wrong input index");
49 const std::vector<T> &get_output_data_by_index(int i) override final
52 return _reference_output_data;
56 std::vector<T> _input1_data;
57 std::vector<T> _input2_data;
58 std::vector<T> _input3_data;
59 std::vector<T> _reference_output_data;
60 const unsigned char *_test_kernel_model_circle;
63 } // namespace test_kernel
64 } // namespace luci_interpreter
66 #endif // LUCI_INTERPRETER_TEST_MODELS_ADD_N_KERNEL_BASE_H