12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- /*
- * 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_E804_H_
- #define INCLUDE_SHL_E804_H_
- #include <stdbool.h>
- #include <stdint.h>
- #include <stdlib.h>
- #include <string.h>
- #include "csi_nn.h"
- #include "shl_ref.h"
- int shl_e804_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_e804_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_e804_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_e804_avgpool2d_init_q7(struct csinn_tensor *input, struct csinn_tensor *output,
- struct csinn_pool_params *params);
- int shl_e804_maxpool2d_init_q7(struct csinn_tensor *input, struct csinn_tensor *output,
- struct csinn_pool_params *params);
- int shl_e804_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_e804_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_e804_softmax_q7(struct csinn_tensor *input, struct csinn_tensor *output,
- struct csinn_softmax_params *params);
- int shl_e804_softmax_q15(struct csinn_tensor *input, struct csinn_tensor *output,
- struct csinn_softmax_params *params);
- int shl_e804_relu_q7(struct csinn_tensor *input, struct csinn_tensor *output,
- struct csinn_relu_params *params);
- int shl_e804_relu_q15(struct csinn_tensor *input, struct csinn_tensor *output,
- struct csinn_relu_params *params);
- int shl_e804_sigmoid_q7(struct csinn_tensor *input, struct csinn_tensor *output,
- struct csinn_sigmoid_params *params);
- int shl_e804_sigmoid_q15(struct csinn_tensor *input, struct csinn_tensor *output,
- struct csinn_sigmoid_params *params);
- int shl_e804_tanh_q7(struct csinn_tensor *input, struct csinn_tensor *output,
- struct csinn_siso_params *params);
- int shl_e804_tanh_q15(struct csinn_tensor *input, struct csinn_tensor *output,
- struct csinn_siso_params *params);
- #endif // INCLUDE_SHL_E804_H_
|