SHL 2.2.x
Loading...
Searching...
No Matches
shl_ref_i805.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_I805_REF_H_
22#define INCLUDE_SHL_I805_REF_H_
23
24#include "csi_nn.h"
25#include "shl_ref.h"
26
27int shl_i805_ref_conv2d_init_q7(struct csinn_tensor *input, struct csinn_tensor *output,
28 struct csinn_tensor *kernel, struct csinn_tensor *bias,
29 struct csinn_conv2d_params *params);
30
31int shl_i805_ref_conv2d_init_q15(struct csinn_tensor *input, struct csinn_tensor *output,
32 struct csinn_tensor *kernel, struct csinn_tensor *bias,
33 struct csinn_conv2d_params *params);
34
35int shl_i805_ref_depthwise_conv2d_init_q7(struct csinn_tensor *input, struct csinn_tensor *output,
36 struct csinn_tensor *kernel, struct csinn_tensor *bias,
37 struct csinn_conv2d_params *params);
38
39int shl_i805_ref_avgpool2d_init_q7(struct csinn_tensor *input, struct csinn_tensor *output,
40 struct csinn_pool_params *params);
41
42int shl_i805_ref_maxpool2d_init_q7(struct csinn_tensor *input, struct csinn_tensor *output,
43 struct csinn_pool_params *params);
44
45int shl_i805_ref_fullyconnected_q7(struct csinn_tensor *input, struct csinn_tensor *output,
46 struct csinn_tensor *weights, struct csinn_tensor *bias,
47 struct csinn_fc_params *params);
48
49int shl_i805_ref_fullyconnected_q15(struct csinn_tensor *input, struct csinn_tensor *output,
50 struct csinn_tensor *weights, struct csinn_tensor *bias,
51 struct csinn_fc_params *params);
52
53int shl_i805_ref_softmax_q7(struct csinn_tensor *input, struct csinn_tensor *output,
54 struct csinn_softmax_params *params);
55
56int shl_i805_ref_softmax_q15(struct csinn_tensor *input, struct csinn_tensor *output,
57 struct csinn_softmax_params *params);
58
59int shl_i805_ref_relu_q7(struct csinn_tensor *input, struct csinn_tensor *output,
60 struct csinn_relu_params *params);
61
62int shl_i805_ref_relu_q15(struct csinn_tensor *input, struct csinn_tensor *output,
63 struct csinn_relu_params *params);
64
65int shl_i805_ref_sigmoid_q7(struct csinn_tensor *input, struct csinn_tensor *output,
66 struct csinn_sigmoid_params *params);
67
68int shl_i805_ref_sigmoid_q15(struct csinn_tensor *input, struct csinn_tensor *output,
69 struct csinn_sigmoid_params *params);
70
71int shl_i805_ref_tanh_q7(struct csinn_tensor *input, struct csinn_tensor *output,
72 struct csinn_siso_params *params);
73
74int shl_i805_ref_tanh_q15(struct csinn_tensor *input, struct csinn_tensor *output,
75 struct csinn_siso_params *params);
76
77#endif // INCLUDE_SHL_I805_REF_H_
Definition: csinn_data_structure.h:553
Definition: csinn_data_structure.h:596
Definition: csinn_data_structure.h:605
Definition: csinn_data_structure.h:676
Definition: csinn_data_structure.h:671
Definition: csinn_data_structure.h:661
Definition: csinn_data_structure.h:692
Definition: csinn_data_structure.h:475