-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
chenf
committed
Jan 23, 2024
1 parent
eb19642
commit 533ee30
Showing
196 changed files
with
14,834 additions
and
1,775 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
/* | ||
* Copyright (C) 2016-2023 T-Head Semiconductor Co., Ltd. All rights reserved. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the License); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an AS IS BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#ifndef INCLUDE_SHL_C906_PERF_H_ | ||
#define INCLUDE_SHL_C906_PERF_H_ | ||
|
||
#include "csi_nn.h" | ||
#include "shl_utils.h" | ||
|
||
int shl_c906_conv2d_perf(struct csinn_tensor *input, struct csinn_tensor *output, | ||
struct csinn_tensor *kernel, struct csinn_tensor *bias, | ||
struct csinn_conv2d_params *params, struct csinn_perf_info *perf_info); | ||
|
||
int shl_c906_depthwise_conv2d_perf(struct csinn_tensor *input, struct csinn_tensor *output, | ||
struct csinn_tensor *kernel, struct csinn_tensor *bias, | ||
struct csinn_conv2d_params *params, | ||
struct csinn_perf_info *perf_info); | ||
|
||
int shl_c906_conv1d_perf(struct csinn_tensor *input, struct csinn_tensor *output, | ||
struct csinn_tensor *kernel, struct csinn_tensor *bias, | ||
struct csinn_conv1d_params *params, struct csinn_perf_info *perf_info); | ||
|
||
int shl_c906_depthwise_conv1d_perf(struct csinn_tensor *input, struct csinn_tensor *output, | ||
struct csinn_tensor *kernel, struct csinn_tensor *bias, | ||
struct csinn_conv1d_params *params, | ||
struct csinn_perf_info *perf_info); | ||
|
||
int shl_c906_fullyconnected_perf(struct csinn_tensor *input, struct csinn_tensor *output, | ||
struct csinn_tensor *weights, struct csinn_tensor *bias, | ||
struct csinn_fc_params *params, struct csinn_perf_info *perf_info); | ||
|
||
int shl_c906_maxpool2d_perf(struct csinn_tensor *input, struct csinn_tensor *output, | ||
struct csinn_pool_params *params, struct csinn_perf_info *perf_info); | ||
|
||
int shl_c906_avgpool2d_perf(struct csinn_tensor *input, struct csinn_tensor *output, | ||
struct csinn_pool_params *params, struct csinn_perf_info *perf_info); | ||
|
||
int shl_c906_div_perf(struct csinn_tensor *input0, struct csinn_tensor *input1, | ||
struct csinn_tensor *output, struct csinn_diso_params *params, | ||
struct csinn_perf_info *perf_info); | ||
|
||
int shl_c906_abs_perf(struct csinn_tensor *input, struct csinn_tensor *output, | ||
struct csinn_siso_params *params, struct csinn_perf_info *perf_info); | ||
|
||
int shl_c906_add_perf(struct csinn_tensor *input0, struct csinn_tensor *input1, | ||
struct csinn_tensor *output, struct csinn_diso_params *params, | ||
struct csinn_perf_info *perf_info); | ||
|
||
int shl_c906_clip_perf(struct csinn_tensor *input, struct csinn_tensor *output, | ||
struct csinn_clip_params *params, struct csinn_perf_info *perf_info); | ||
|
||
int shl_c906_concat_perf(struct csinn_tensor **input, struct csinn_tensor *output, | ||
struct csinn_clip_params *params, struct csinn_perf_info *perf_info); | ||
|
||
int shl_c906_global_avgpool2d_perf(struct csinn_tensor *input, struct csinn_tensor *output, | ||
struct csinn_pool_params *params, | ||
struct csinn_perf_info *perf_info); | ||
|
||
int shl_c906_global_maxpool2d_perf(struct csinn_tensor *input, struct csinn_tensor *output, | ||
struct csinn_pool_params *params, | ||
struct csinn_perf_info *perf_info); | ||
|
||
int shl_c906_leaky_relu_perf(struct csinn_tensor *input, struct csinn_tensor *output, | ||
struct csinn_relu_params *params, struct csinn_perf_info *perf_info); | ||
|
||
int shl_c906_lrn_perf(struct csinn_tensor *input, struct csinn_tensor *output, | ||
struct csinn_lrn_params *params, struct csinn_perf_info *perf_info); | ||
|
||
int shl_c906_matmul_perf(struct csinn_tensor *mat0, struct csinn_tensor *mat1, | ||
struct csinn_tensor *output, struct csinn_matmul_params *params, | ||
struct csinn_perf_info *perf_info); | ||
|
||
int shl_c906_minimum_perf(struct csinn_tensor *input0, struct csinn_tensor *input1, | ||
struct csinn_tensor *output, struct csinn_diso_params *params, | ||
struct csinn_perf_info *perf_info); | ||
|
||
int shl_c906_mul_perf(struct csinn_tensor *input0, struct csinn_tensor *input1, | ||
struct csinn_tensor *output, struct csinn_diso_params *params, | ||
struct csinn_perf_info *perf_info); | ||
|
||
int shl_c906_prelu_perf(struct csinn_tensor *input, struct csinn_tensor *alpha, | ||
struct csinn_tensor *output, struct csinn_prelu_params *params, | ||
struct csinn_perf_info *perf_info); | ||
|
||
int shl_c906_relu_perf(struct csinn_tensor *input, struct csinn_tensor *output, | ||
struct csinn_relu_params *params, struct csinn_perf_info *perf_info); | ||
|
||
int shl_c906_relu1_perf(struct csinn_tensor *input, struct csinn_tensor *output, | ||
struct csinn_relu_params *params, struct csinn_perf_info *perf_info); | ||
|
||
int shl_c906_relu6_perf(struct csinn_tensor *input, struct csinn_tensor *output, | ||
struct csinn_relu_params *params, struct csinn_perf_info *perf_info); | ||
|
||
int shl_c906_split_perf(struct csinn_tensor *input, struct csinn_tensor **output, | ||
struct csinn_split_params *params, struct csinn_perf_info *perf_info); | ||
|
||
int shl_c906_sub_perf(struct csinn_tensor *input0, struct csinn_tensor *input1, | ||
struct csinn_tensor *output, struct csinn_diso_params *params, | ||
struct csinn_perf_info *perf_info); | ||
|
||
int shl_c906_reshape_perf(struct csinn_tensor *input, struct csinn_tensor *output, | ||
struct csinn_reshape_params *params, struct csinn_perf_info *perf_info); | ||
|
||
int shl_c906_reduce_sum_perf(struct csinn_tensor *input, struct csinn_tensor *output, | ||
struct csinn_reduce_params *params, struct csinn_perf_info *perf_info); | ||
|
||
#endif // INCLUDE_SHL_C906_PERF_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.