SHL 2.2.x
Loading...
Searching...
No Matches
shl_tvmgen.h
1/*
2 * Copyright (C) 2016-2023 T-Head Semiconductor Co., Ltd. All rights reserved.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 *
6 * Licensed under the Apache License, Version 2.0 (the License); you may
7 * not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
14 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19/* SHL version 2.2.x */
20
21#ifndef INCLUDE_SHL_TVMGEN_H_
22#define INCLUDE_SHL_TVMGEN_H_
23
24#include <stdbool.h>
25#include <stdint.h>
26#include <stdlib.h>
27#include <string.h>
28
29#include "csi_nn.h"
30#include "shl_node.h"
31
32struct shl_tvmgen_name_func {
33 char *name;
34 int (*ptr)();
35 enum csinn_optimize_method_enum opt_method;
36};
37
38struct shl_tvmgen_resource_handle {
39 int *input_output;
40 void *op_params;
41};
42
43int shl_tvmgen_layer_func(struct shl_node *node);
44
45int shl_tvmgen_map_reg(struct shl_tvmgen_name_func *map, int size);
46void *shl_tvmgen_find_reg(char *name, enum csinn_optimize_method_enum *opt_method);
47
48#endif // INCLUDE_SHL_TVMGEN_H_
csinn_optimize_method_enum
Definition: csinn_data_structure.h:434