Grant Watson | 64285a1 | 2022-11-16 15:32:39 +0000 | [diff] [blame] | 1 | |
Grant Watson | e70d931 | 2023-08-28 16:34:28 +0100 | [diff] [blame] | 2 | // Copyright (c) 2022-2023, ARM Limited. |
Grant Watson | 64285a1 | 2022-11-16 15:32:39 +0000 | [diff] [blame] | 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 | // THIS FILE IS GENERATED. DO NOT EDIT! |
| 17 | // See scripts/operator_api/generate_api.py |
| 18 | |
| 19 | #ifndef OPERATORS_H_ |
| 20 | #define OPERATORS_H_ |
| 21 | |
Grant Watson | e70d931 | 2023-08-28 16:34:28 +0100 | [diff] [blame] | 22 | #include "func_config.h" |
| 23 | #include "func_debug.h" |
Grant Watson | eff7038 | 2023-09-12 10:46:36 +0100 | [diff] [blame] | 24 | #include "types.h" |
Grant Watson | e70d931 | 2023-08-28 16:34:28 +0100 | [diff] [blame] | 25 | |
Grant Watson | 64285a1 | 2022-11-16 15:32:39 +0000 | [diff] [blame] | 26 | #include <stddef.h> |
| 27 | #include <stdint.h> |
| 28 | |
| 29 | #ifdef __cplusplus |
| 30 | extern "C" { |
| 31 | #endif /* __cplusplus */ |
| 32 | |
Grant Watson | eff7038 | 2023-09-12 10:46:36 +0100 | [diff] [blame] | 33 | struct func_ctx_t |
Grant Watson | 64285a1 | 2022-11-16 15:32:39 +0000 | [diff] [blame] | 34 | { |
Grant Watson | eff7038 | 2023-09-12 10:46:36 +0100 | [diff] [blame] | 35 | func_config_t func_config = func_config_t{}; |
| 36 | func_debug_t func_debug = func_debug_t{}; |
Grant Watson | 64285a1 | 2022-11-16 15:32:39 +0000 | [diff] [blame] | 37 | }; |
| 38 | |
| 39 | {% for operator in operators: %} |
| 40 | tosa_status_t tosa_run_{{ operator.name }} ( |
| 41 | {%- for arg in operator.arguments: -%} |
| 42 | {% if arg.type != "tosa_tensor_t" -%}const {% endif -%}{{arg.type}} client_{{arg.name}}{{arg.shape}} |
| 43 | {% if loop.index < operator.arguments|length %},{% endif %} |
Grant Watson | eff7038 | 2023-09-12 10:46:36 +0100 | [diff] [blame] | 44 | {%- endfor -%},const func_ctx_t& func_ctx); |
Grant Watson | 64285a1 | 2022-11-16 15:32:39 +0000 | [diff] [blame] | 45 | {% endfor %} |
| 46 | |
| 47 | #ifdef __cplusplus |
| 48 | } |
| 49 | #endif /* __cplusplus */ |
| 50 | |
| 51 | #endif // OPERATORS_H_ |