SHL 2.2.x
Loading...
Searching...
No Matches
shl_asp.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_ASP_H_
22#define INCLUDE_SHL_ASP_H_
23
24#include "csi_nn.h"
25#include "shl_ref.h"
26
27int shl_asp_avgpool2d(struct csinn_tensor *input, struct csinn_tensor *output,
28 struct csinn_pool_params *params);
29int shl_asp_conv2d(struct csinn_tensor *input, struct csinn_tensor *output,
30 struct csinn_tensor *kernel, struct csinn_tensor *bias,
31 struct csinn_conv2d_params *params);
32int shl_asp_depthwise_conv2d(struct csinn_tensor *input, struct csinn_tensor *output,
33 struct csinn_tensor *kernel, struct csinn_tensor *bias,
34 struct csinn_conv2d_params *params);
35int shl_asp_fullyconnected(struct csinn_tensor *input, struct csinn_tensor *output,
36 struct csinn_tensor *kernel, struct csinn_tensor *bias,
37 struct csinn_fc_params *params);
38int shl_asp_maxpool2d(struct csinn_tensor *input, struct csinn_tensor *output,
39 struct csinn_pool_params *params);
40int shl_asp_avgpool2d_est(struct csinn_tensor *input, struct csinn_tensor *output,
41 struct csinn_pool_params *params);
42int shl_asp_conv2d_est(struct csinn_tensor *input, struct csinn_tensor *output,
43 struct csinn_tensor *kernel, struct csinn_tensor *bias,
44 struct csinn_conv2d_params *params);
45int shl_asp_depthwise_conv2d_est(struct csinn_tensor *input, struct csinn_tensor *output,
46 struct csinn_tensor *kernel, struct csinn_tensor *bias,
47 struct csinn_conv2d_params *params);
48int shl_asp_fullyconnected_est(struct csinn_tensor *input, struct csinn_tensor *output,
49 struct csinn_tensor *kernel, struct csinn_tensor *bias,
50 struct csinn_fc_params *params);
51int shl_asp_maxpool2d_est(struct csinn_tensor *input, struct csinn_tensor *output,
52 struct csinn_pool_params *params);
53#endif // INCLUDE_SHL_ASP_H_
Definition: csinn_data_structure.h:553
Definition: csinn_data_structure.h:596
Definition: csinn_data_structure.h:605
Definition: csinn_data_structure.h:475