blob: 0c98da8083b7f4da8f992072129968dbe8459cab [file] [log] [blame]
Grant Watson64285a12022-11-16 15:32:39 +00001
Grant Watsone70d9312023-08-28 16:34:28 +01002// Copyright (c) 2022-2023, ARM Limited.
Grant Watson64285a12022-11-16 15:32:39 +00003//
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 Watsone70d9312023-08-28 16:34:28 +010022#include "func_config.h"
23#include "func_debug.h"
Grant Watsoneff70382023-09-12 10:46:36 +010024#include "types.h"
Grant Watsone70d9312023-08-28 16:34:28 +010025
Grant Watson64285a12022-11-16 15:32:39 +000026#include <stddef.h>
27#include <stdint.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif /* __cplusplus */
32
Grant Watsoneff70382023-09-12 10:46:36 +010033 struct func_ctx_t
Grant Watson64285a12022-11-16 15:32:39 +000034 {
Grant Watsoneff70382023-09-12 10:46:36 +010035 func_config_t func_config = func_config_t{};
36 func_debug_t func_debug = func_debug_t{};
Grant Watson64285a12022-11-16 15:32:39 +000037 };
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 Watsoneff70382023-09-12 10:46:36 +010044 {%- endfor -%},const func_ctx_t& func_ctx);
Grant Watson64285a12022-11-16 15:32:39 +000045 {% endfor %}
46
47#ifdef __cplusplus
48}
49#endif /* __cplusplus */
50
51#endif // OPERATORS_H_