1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- /*
- * Copyright (C) 2016-2022 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.
- */
- /* CSI-NN2 version 2.0.x */
- #ifndef INCLUDE_SHL_I805_REF_H_
- #define INCLUDE_SHL_I805_REF_H_
- #include "csi_nn.h"
- #include "shl_ref.h"
- int shl_i805_ref_conv2d_init_q7(struct csinn_tensor *input, struct csinn_tensor *output,
- struct csinn_tensor *kernel, struct csinn_tensor *bias,
- struct csinn_conv2d_params *params);
- int shl_i805_ref_conv2d_init_q15(struct csinn_tensor *input, struct csinn_tensor *output,
- struct csinn_tensor *kernel, struct csinn_tensor *bias,
- struct csinn_conv2d_params *params);
- int shl_i805_ref_depthwise_conv2d_init_q7(struct csinn_tensor *input, struct csinn_tensor *output,
- struct csinn_tensor *kernel, struct csinn_tensor *bias,
- struct csinn_conv2d_params *params);
- int shl_i805_ref_avgpool2d_init_q7(struct csinn_tensor *input, struct csinn_tensor *output,
- struct csinn_pool_params *params);
- int shl_i805_ref_maxpool2d_init_q7(struct csinn_tensor *input, struct csinn_tensor *output,
- struct csinn_pool_params *params);
- int shl_i805_ref_fullyconnected_q7(struct csinn_tensor *input, struct csinn_tensor *output,
- struct csinn_tensor *weights, struct csinn_tensor *bias,
- struct csinn_fc_params *params);
- int shl_i805_ref_fullyconnected_q15(struct csinn_tensor *input, struct csinn_tensor *output,
- struct csinn_tensor *weights, struct csinn_tensor *bias,
- struct csinn_fc_params *params);
- int shl_i805_ref_softmax_q7(struct csinn_tensor *input, struct csinn_tensor *output,
- struct csinn_softmax_params *params);
- int shl_i805_ref_softmax_q15(struct csinn_tensor *input, struct csinn_tensor *output,
- struct csinn_softmax_params *params);
- int shl_i805_ref_relu_q7(struct csinn_tensor *input, struct csinn_tensor *output,
- struct csinn_relu_params *params);
- int shl_i805_ref_relu_q15(struct csinn_tensor *input, struct csinn_tensor *output,
- struct csinn_relu_params *params);
- int shl_i805_ref_sigmoid_q7(struct csinn_tensor *input, struct csinn_tensor *output,
- struct csinn_sigmoid_params *params);
- int shl_i805_ref_sigmoid_q15(struct csinn_tensor *input, struct csinn_tensor *output,
- struct csinn_sigmoid_params *params);
- int shl_i805_ref_tanh_q7(struct csinn_tensor *input, struct csinn_tensor *output,
- struct csinn_siso_params *params);
- int shl_i805_ref_tanh_q15(struct csinn_tensor *input, struct csinn_tensor *output,
- struct csinn_siso_params *params);
- #endif // INCLUDE_SHL_I805_REF_H_
|