25#ifndef INCLUDE_CSI_NN_H_
26#define INCLUDE_CSI_NN_H_
36#include "shl_memory.h"
4498 struct csinn_layer_norm_params *params);
4514 struct csinn_layer_norm_params *params);
4530 struct csinn_cache_matmul_params *params);
4546 struct csinn_cache_matmul_params *params);
4562 struct csinn_cache_conv1d_params *params);
4578 struct csinn_cache_conv1d_params *params);
int csinn_fullyconnected_relu(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *weights, struct csinn_tensor *bias, struct csinn_fc_params *params)
Fully Connected and ReLU fusion function.
int csinn_fullyconnected_relu_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *weights, struct csinn_tensor *bias, struct csinn_fc_params *params)
Fully Connected and ReLU fusion initialization function.
int csinn_pool_with_argmax(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_pool_params *params)
Pooling and argmax fusion function.
int csinn_pool_with_argmax_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_pool_params *params)
Pooling and argmax fusion initialization function.
int csinn_tan_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
tan initialization function
Definition: tan.c:28
int csinn_select_init(struct csinn_tensor *condition, struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_select_params *params)
Select initialization function.
Definition: select.c:28
int csinn_data_convert_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Data convert initialization function.
Definition: data_convert.c:28
int csinn_group_conv2d_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *kernel, struct csinn_tensor *bias, struct csinn_conv2d_params *params)
Two-dimensional group convolution initialization function.
Definition: group_conv2d.c:28
int csinn_cosh_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
colh function
Definition: cosh.c:28
int csinn_maximum_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Maximum initialization function.
Definition: maximum.c:28
int csinn_segment_prod_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_segment_params *params)
Segment prod initialization function.
Definition: segment_prod.c:28
int csinn_or_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
OR initialization function.
Definition: or.c:28
int csinn_exp_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Exp initialization function.
Definition: exp.c:28
int csinn_square_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Square initialization function.
Definition: square.c:28
int csinn_yuv_rgb_scale_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
YUV RGB scale initialization function.
Definition: yuv_rgb_scale.c:28
int csinn_log_softmax_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_softmax_params *params)
Log softmax initialization function.
Definition: log_softmax.c:28
int csinn_mod_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Mod initialization function.
Definition: mod.c:28
int csinn_prelu_init(struct csinn_tensor *input, struct csinn_tensor *alpha, struct csinn_tensor *output, struct csinn_prelu_params *params)
PReLU initialization function.
Definition: prelu.c:28
int csinn_sign_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Sign initialization function.
Definition: sign.c:28
int csinn_relu1_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_relu_params *params)
ReLU1 initialization function.
Definition: relu1.c:28
int csinn_depthwise_conv2d_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *kernel, struct csinn_tensor *bias, struct csinn_conv2d_params *params)
Two-dimensional depthwise convolution initialization function.
Definition: depthwise_conv2d.c:28
int csinn_layer_norm_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *gamma, struct csinn_tensor *beta, struct csinn_layer_norm_params *params)
Layer normalization initialization function.
Definition: layer_norm.c:28
int csinn_psroipooling_init(struct csinn_tensor *data, struct csinn_tensor *rois, struct csinn_tensor *output, struct csinn_psroipooling_params *params)
PS ROI pooling initialization function.
Definition: psroipooling.c:28
int csinn_add_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Add initialization function.
Definition: add.c:28
int csinn_floor_divide_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Floor div initialization function.
Definition: floor_divide.c:28
int csinn_softrelu_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_relu_params *params)
Soft ReLU initialization function.
Definition: softrelu.c:28
int csinn_depthwise_conv2d_relu_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *kernel, struct csinn_tensor *bias, struct csinn_conv2d_params *params)
Two-dimensional depthwise convolution and ReLU fusion initialization function.
Definition: depthwise_conv2d_relu.c:29
int csinn_crop_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_crop_params *params)
Crop initialization function.
Definition: crop.c:28
int csinn_xor_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
XOR initialization function.
Definition: xor.c:28
int csinn_rsqrt_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Rsqrt initialization function.
Definition: rsqrt.c:28
int csinn_cumsum_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_cumsum_params *params)
Cumsum initialization function.
Definition: cumsum.c:28
int csinn_negative_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Negative initialization function.
Definition: negative.c:28
int csinn_erf_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Erf initialization function.
Definition: erf.c:28
int csinn_pad_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_pad_params *params)
Pad initialization function.
Definition: pad.c:28
int csinn_sum_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Sum initialization function.
Definition: sum.c:28
int csinn_depth_to_space_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_depth_to_space_params *params)
Depth to space initialization function.
Definition: depth_to_space.c:28
int csinn_all_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
All initialization function.
Definition: all.c:28
int csinn_floor_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Floor initialization function.
Definition: floor.c:28
int csinn_segment_sum_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_segment_params *params)
Segment sum initialization function.
Definition: segment_sum.c:28
int csinn_global_avgpool2d_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_pool_params *params)
Two-dimensional global average pooling initialization function.
Definition: global_averagepool.c:28
int csinn_logical_or_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Logical OR initialization function.
Definition: logical_or.c:28
int csinn_batch_to_space_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_batch_to_space_params *params)
Batch to space initialization function.
Definition: batch_to_space.c:28
int csinn_avgpool2d_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_pool_params *params)
Two-dimensional average pooling initialization function.
Definition: averagepool.c:28
int csinn_broadcast_to_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_broadcast_to_params *params)
Broadcast to initialization function.
Definition: broadcast_to.c:28
int csinn_fsmn_init(struct csinn_tensor *frame, struct csinn_tensor *l_filter, struct csinn_tensor *r_filter, struct csinn_tensor *frame_sequence, struct csinn_tensor *frame_counter, struct csinn_tensor *output, struct csinn_fsmn_params *params)
Feedforward Sequential Memory Network initialization function.
Definition: fsmn.c:28
int csinn_acos_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
acos initialization function
Definition: acos.c:28
int csinn_split_init(struct csinn_tensor *input, struct csinn_tensor **output, struct csinn_split_params *params)
Split initialization function.
Definition: split.c:28
int csinn_reduce_mean_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Reduce mean initialization function.
Definition: reduce_mean.c:28
int csinn_atanh_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
atanh initialization function
Definition: atanh.c:28
int csinn_isnan_bool_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Isnan bool initialization function.
Definition: isnan.c:28
int csinn_sigmoid_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_sigmoid_params *params)
Sigmoid initialization function.
Definition: sigmoid.c:28
int csinn_resize_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_resize_params *params)
Resize initialization function.
Definition: resize.c:28
int csinn_unstack_init(struct csinn_tensor *input, struct csinn_tensor **output, struct csinn_unstack_params *params)
Unstack initialization function.
Definition: unstack.c:28
int csinn_softsign_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Softsign initialization function.
Definition: softsign.c:28
int csinn_fullyconnected_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *weights, struct csinn_tensor *bias, struct csinn_fc_params *params)
Fully Connected initialization function.
Definition: fullyconnected.c:28
int csinn_reduce_min_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Reduce min initialization function.
Definition: reduce_min.c:28
int csinn_asin_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
asin initialization function
Definition: asin.c:28
int csinn_and_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
AND initialization function.
Definition: and.c:28
int csinn_logical_xor_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Logical XOR initialization function.
Definition: logical_xor.c:28
int csinn_where_init(struct csinn_tensor *condition, struct csinn_tensor *x, struct csinn_tensor *y, struct csinn_tensor *output, struct csinn_where_params *params)
Where initialization function.
Definition: where.c:28
int csinn_roipool_init(struct csinn_tensor *data, struct csinn_tensor *rois, struct csinn_tensor *output, struct csinn_roi_pool_params *params)
ROI pooling initialization function.
Definition: roipool.c:28
int csinn_softplus_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Softplus initialization function.
Definition: softplus.c:28
int csinn_threshold_relu_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_relu_params *params)
Threshold ReLU initialization function.
Definition: threshold_relu.c:28
int csinn_div_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Div initialization function.
Definition: div.c:28
int csinn_sequence_mask_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_sequence_mask_params *params)
Sequence mask initialization function.
Definition: sequence_mask.c:28
int csinn_shuffle_channel_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_shuffle_channel_params *params)
Shuffle channel initialization function.
Definition: shuffle_channel.c:28
int csinn_flatten_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_flatten_params *params)
Flatten initialization function.
Definition: flatten.c:28
int csinn_segment_min_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_segment_params *params)
Segment min initialization function.
Definition: segment_min.c:28
int csinn_greater_equal_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Greater equal initialization function.
Definition: greater_equal.c:28
int csinn_strided_slice_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_strided_slice_params *params)
Stride slice initialization function.
Definition: strided_slice.c:28
int csinn_cos_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
col initialization function
Definition: cos.c:28
int csinn_softmax_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_softmax_params *params)
Softmax initialization function.
Definition: softmax.c:28
int csinn_tile_init(struct csinn_tensor *inputs, struct csinn_tensor *output, struct csinn_tile_params *params)
Tile initialization function.
Definition: tile.c:28
int csinn_power_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Power initialization function.
Definition: power.c:28
int csinn_not_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
NOT initialization function.
Definition: not.c:28
int csinn_maxpool2d_locat_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_pool_params *params)
Max pooling and with locating information initialization function.
Definition: maxpool2d_locat.c:28
int csinn_segment_mean_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_segment_params *params)
Segment mean initialization function.
Definition: segment_mean.c:28
int csinn_argmax_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Argmax initialization function.
Definition: argmax.c:28
int csinn_matmul_init(struct csinn_tensor *mat0, struct csinn_tensor *mat1, struct csinn_tensor *output, struct csinn_matmul_params *params)
Matmul initialization function.
Definition: matmul.c:28
int csinn_deconv3d_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *kernel, struct csinn_tensor *bias, struct csinn_conv3d_params *params)
Three-dimensional deconvolution initialization function.
Definition: deconvolution3d.c:28
int csinn_acosh_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
acosh initialization function
Definition: acosh.c:28
int csinn_col2im_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *kernel, struct csinn_col2im_params *params)
col2im initialization function
Definition: col2im.c:28
int csinn_floor_mod_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Floor mod initialization function.
Definition: floor_mod.c:28
int csinn_not_equal_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Not equal initialization function.
Definition: not_equal.c:28
int csinn_min_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Min initialization function.
Definition: min.c:28
int csinn_max_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Max initialization function.
Definition: max.c:28
int csinn_expm1_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Expm1 initialization function.
Definition: expm1.c:28
int csinn_ndarray_size_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_ndarray_size_params *params)
Ndarray size initialization function.
Definition: ndarray_size.c:28
int csinn_sinh_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
sinh initialization function
Definition: sinh.c:28
int csinn_conv3d_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *kernel, struct csinn_tensor *bias, struct csinn_conv3d_params *params)
Three-dimensional convolution initialization function.
Definition: convolution3d.c:28
int csinn_stack_init(struct csinn_tensor **inputs, struct csinn_tensor *output, struct csinn_stack_params *params)
Stack initialization function.
Definition: stack.c:28
int csinn_hard_sigmoid_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_sigmoid_params *params)
Hard sigmoid initialization function.
Definition: hard_sigmoid.c:28
int csinn_space_to_depth_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_space_to_depth_params *params)
Space to depth initialization function.
Definition: space_to_depth.c:28
int csinn_scatter_nd_init(struct csinn_tensor *input, struct csinn_tensor *indices, struct csinn_tensor *updates, struct csinn_tensor *output, struct csinn_scatter_nd_params *params)
Scatter nd initialization function.
Definition: scatter.c:28
int csinn_mul_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Mul initialization function.
Definition: mul.c:28
int csinn_l2pool_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_pool_params *params)
L2 pooling initialization function.
Definition: l2pool.c:28
int csinn_maxpool3d_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_pool_params *params)
Three-dimensional max pooling initialization function.
Definition: maxpool3d.c:28
int csinn_conv2d_relu6_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *kernel, struct csinn_tensor *bias, struct csinn_conv2d_params *params)
Two-dimensional convolution and ReLU6 fusion initialization function.
Definition: convolution_relu6.c:28
int csinn_mean_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Mean initialization function.
Definition: mean.c:28
int csinn_tanh_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
tanh initialization function
Definition: tanh.c:28
int csinn_gather_nd_init(struct csinn_tensor *input, struct csinn_tensor *indices, struct csinn_tensor *output, struct csinn_gather_nd_params *params)
Gather_nd initialization function.
Definition: gather_nd.c:28
int csinn_asinh_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
asinh initialization function
Definition: asinh.c:28
int csinn_one_hot_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_one_hot_params *params)
One Hot initialization function.
Definition: one_hot.c:28
int csinn_maxpool2d_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_pool_params *params)
Two-dimensional max pooling initialization function.
Definition: maxpool.c:28
int csinn_cast_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_cast_params *params)
Data convert initialization function.
Definition: cast.c:28
int csinn_atan_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
atan initialization function
Definition: atan.c:28
int csinn_lrn_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_lrn_params *params)
Local Response Normalization initialization function.
Definition: lrn.c:28
int csinn_clip_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_clip_params *params)
Clip initialization function.
Definition: clip.c:28
int csinn_reorg_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reorg_params *params)
Reorg initialization function.
Definition: reorg.c:28
int csinn_relun_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_relu_params *params)
ReLUn initialization function.
Definition: relun.c:28
int csinn_segment_max_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_segment_params *params)
Segment max initialization function.
Definition: segment_max.c:28
int csinn_relu_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_relu_params *params)
ReLU initialization function.
Definition: relu.c:28
int csinn_conv2d_relu_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *kernel, struct csinn_tensor *bias, struct csinn_conv2d_params *params)
Two-dimensional convolution and ReLU fusion initialization function.
Definition: convolution_relu.c:29
int csinn_global_maxpool2d_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_pool_params *params)
Two-dimensional global max pooling initialization function.
Definition: global_maxpool.c:28
int csinn_arange_init(struct csinn_tensor *output, struct csinn_arange_params *params)
Arange initialization function.
Definition: arange.c:28
int csinn_ceil_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Ceil initialization function.
Definition: ceil.c:28
int csinn_l2_normalization_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_l2n_params *params)
L2 normalization initialization function.
Definition: l2_normalization.c:28
int csinn_gather_init(struct csinn_tensor *input, struct csinn_tensor *indices, struct csinn_tensor *output, struct csinn_gather_params *params)
Gather initialization function.
Definition: gather.c:28
int csinn_transpose_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_transpose_params *params)
Transpose initialization function.
Definition: transpose.c:28
int csinn_log1p_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Log1p initialization function.
Definition: log1p.c:28
int csinn_equal_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Equal initialization function.
Definition: equal.c:28
int csinn_unpooling_init(struct csinn_tensor *input, struct csinn_tensor *mask, struct csinn_tensor *output, struct csinn_unpooling_params *params)
Unpooling initialization function.
Definition: unpooling.c:28
int csinn_logical_and_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Logical AND initialization function.
Definition: logical_and.c:28
int csinn_batch_normalization_init(struct csinn_tensor *input, struct csinn_tensor *mean, struct csinn_tensor *variance, struct csinn_tensor *gamma, struct csinn_tensor *beta, struct csinn_tensor *output, struct csinn_bn_params *params)
Batch normalization initialization function.
Definition: batch_normalization.c:28
int csinn_proposal_init(struct csinn_tensor *cls_prob, struct csinn_tensor *bbox_pred, struct csinn_tensor *im_info, struct csinn_tensor *output, struct csinn_proposal_params *params)
Proposal initialization function.
Definition: proposal.c:28
int csinn_squeeze_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_squeeze_params *params)
Squeeze initialization function.
Definition: squeeze.c:28
int csinn_space_to_batch_nd_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_space_to_batch_nd_params *params)
Space to batch nd initialization function.
Definition: space_to_batch_nd.c:28
int csinn_sqrt_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Sqrt initialization function.
Definition: sqrt.c:28
int csinn_batch_to_space_nd_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_batch_to_space_nd_params *params)
Batch to space nd initialization function.
Definition: batch_to_space_nd.c:28
int csinn_expand_dims_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_expand_dims_params *params)
Expand dims initialization function.
Definition: expand_dims.c:28
int csinn_argmin_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Argmin initialization function.
Definition: argmin.c:28
int csinn_greater_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Greater initialization function.
Definition: greater.c:28
int csinn_reverse_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reverse_params *params)
Reverse initialization function.
Definition: reverse.c:28
int csinn_concat_init(struct csinn_tensor **input, struct csinn_tensor *output, struct csinn_concat_params *params)
Concat initialization function.
Definition: concat.c:28
int csinn_cache_matmul_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *weight, struct csinn_tensor *bias, struct csinn_cache_matmul_params *params)
Cache matmul initialization function.
Definition: cache_matmul.c:28
int csinn_where_softmax_init(struct csinn_tensor *condition, struct csinn_tensor *y, struct csinn_tensor *output, struct csinn_where_softmax_params *params)
Where initialization function.
Definition: where_softmax.c:28
int csinn_avgpool3d_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_pool_params *params)
Three-dimensional average pooling initialization function.
Definition: averagepool3d.c:28
int csinn_reshape_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reshape_params *params)
Reshape initialization function.
Definition: reshape.c:28
int csinn_any_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Any initialization function.
Definition: any.c:28
int csinn_elu_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_relu_params *params)
ELU initialization function.
Definition: elu.c:28
int csinn_log_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Log initialization function.
Definition: log.c:28
int csinn_relu6_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_relu_params *params)
ReLU6 initialization function.
Definition: relu6.c:28
int csinn_minimum_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Minimum initialization function.
Definition: minimum.c:28
int csinn_im2col_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_im2col_params *params)
im2col initialization function
Definition: im2col.c:28
int csinn_cache_conv1d_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *weight, struct csinn_tensor *bias, struct csinn_cache_conv1d_params *params)
Cache conv1d initialization function.
Definition: cache_conv1d.c:28
int csinn_prod_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Prod initialization function.
Definition: prod.c:28
int csinn_roi_align_init(struct csinn_tensor *data, struct csinn_tensor *rois, struct csinn_tensor *output, struct csinn_roi_align_params *params)
ROI align initialization function.
Definition: roialign.c:28
int csinn_reduce_max_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Reduce max initialization function.
Definition: reduce_max.c:28
int csinn_shape_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_shape_params *params)
Shape initialization function.
Definition: shape.c:28
int csinn_sin_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
sin initialization function
Definition: sin.c:28
int csinn_abs_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Abs initialization function.
Definition: abs.c:28
int csinn_reduce_prod_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Reduce prod initialization function.
Definition: reduce_prod.c:28
int csinn_reduce_logsumexp_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Reduce LogSumExp initialization function.
Definition: reduce_logsumexp.c:28
int csinn_logical_not_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Logical NOT initialization function.
Definition: logical_not.c:28
int csinn_topk_init(struct csinn_tensor *input, struct csinn_tensor *output1, struct csinn_tensor *output2, struct csinn_topk_params *params)
TOP-k initialization function.
Definition: topk.c:28
int csinn_trunc_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Trunc initialization function.
Definition: trunc.c:28
int csinn_less_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Less initialization function.
Definition: less.c:28
int csinn_deconv2d_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *kernel, struct csinn_tensor *bias, struct csinn_conv2d_params *params)
Two-dimensional deconvolution initialization function.
Definition: deconvolution.c:28
int csinn_less_equal_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Less equal initialization function.
Definition: less_equal.c:28
int csinn_conv2d_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *kernel, struct csinn_tensor *bias, struct csinn_conv2d_params *params)
Two-dimensional convolution initialization function.
Definition: convolution.c:28
int csinn_leaky_relu_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_relu_params *params)
Leaky ReLU initialization function.
Definition: leaky_relu.c:28
int csinn_slice_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_slice_params *params)
Slice initialization function.
Definition: slice.c:28
int csinn_reduce_sum_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Reduce sum initialization function.
Definition: reduce_sum.c:28
int csinn_round_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Round initialization function.
Definition: round.c:28
int csinn_cumprod_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_cumprod_params *params)
Cumprod initialization function.
Definition: cumprod.c:28
int csinn_non_max_suppression_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_non_max_suppression_params *params)
Non-max suppression initialization function.
Definition: non_max_suppression.c:28
int csinn_sub_init(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Sub initialization function.
Definition: sub.c:28
int csinn_conv1d_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *kernel, struct csinn_tensor *bias, struct csinn_conv1d_params *params)
One-dimensional convolution initialization function.
Definition: convolution1d.c:28
int csinn_space_to_batch_init(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_space_to_batch_params *params)
Space to batch initialization function.
Definition: space_to_batch.c:28
int csinn_transpose(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_transpose_params *params)
Transpose function.
Definition: transpose.c:46
int csinn_sin(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate sin for each element of input tensor.
Definition: sin.c:46
int csinn_gather_nd(struct csinn_tensor *input, struct csinn_tensor *indices, struct csinn_tensor *output, struct csinn_gather_nd_params *params)
Gather the data in input tensor according to the specified index.
Definition: gather_nd.c:46
int csinn_cache_conv1d(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *weight, struct csinn_tensor *bias, struct csinn_cache_conv1d_params *params)
Cache conv1d function.
Definition: cache_conv1d.c:47
int csinn_depth_to_space(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_depth_to_space_params *params)
Fill the depth into the height and width of input tensor.
Definition: depth_to_space.c:46
int csinn_mean(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Calculate the mean value of input tensor on the specified dimensions.
Definition: mean.c:46
int csinn_max(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Calculate the maximum value of input tensor on the specified dimensions.
Definition: max.c:46
int csinn_matmul(struct csinn_tensor *mat0, struct csinn_tensor *mat1, struct csinn_tensor *output, struct csinn_matmul_params *params)
Calculate Matmul for each element of two input tensors.
Definition: matmul.c:46
int csinn_expand_dims(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_expand_dims_params *params)
Expand the dimension of input tensor.
Definition: expand_dims.c:46
int csinn_space_to_batch(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_space_to_batch_params *params)
Fill the batch according to the height and width of input tensor.
Definition: space_to_batch.c:46
int csinn_unpooling(struct csinn_tensor *input, struct csinn_tensor *mask, struct csinn_tensor *output, struct csinn_unpooling_params *params)
Unpooling function.
Definition: unpooling.c:46
int csinn_logical_and(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Calculate Logical AND for each element of two input tensors.
Definition: logical_and.c:46
int csinn_floor(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate floor for each element of input tensor.
Definition: floor.c:46
int csinn_reduce_min(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Calculate the reduced minimum value of input tensor on the specified dimensions.
Definition: reduce_min.c:46
int csinn_select(struct csinn_tensor *condition, struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_select_params *params)
Select each element from two input tensors according to the condition tensor.
Definition: select.c:47
int csinn_greater(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Compare whether input0 is greater than input1 for each element of two input tensors.
Definition: greater.c:46
int csinn_all(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Calculate Reduce AND of input tensor on the specified dimensions.
Definition: all.c:46
int csinn_tile(struct csinn_tensor *inputs, struct csinn_tensor *output, struct csinn_tile_params *params)
Repeat input tensor.
Definition: tile.c:46
int csinn_segment_prod(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_segment_params *params)
Calculate the product value of input tensor at the specified positions.
Definition: segment_prod.c:52
int csinn_reduce_mean(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Calculate the reduced mean value of input tensor on the specified dimensions.
Definition: reduce_mean.c:46
int csinn_l2_normalization(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_l2n_params *params)
Calculate L2 Normalization for each element of input tensor.
Definition: l2_normalization.c:46
int csinn_conv2d_relu6(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *kernel, struct csinn_tensor *bias, struct csinn_conv2d_params *params)
Two-dimensional convolution and ReLU6 fusion function.
Definition: convolution_relu6.c:65
int csinn_relu(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_relu_params *params)
Calculate ReLU for each element of input tensor.
Definition: relu.c:46
int csinn_deconv3d(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *kernel, struct csinn_tensor *bias, struct csinn_conv3d_params *params)
Three-dimensional deconvolution function.
Definition: deconvolution3d.c:49
int csinn_relu6(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_relu_params *params)
Calculate ReLU6 for each element of input tensor.
Definition: relu6.c:46
int csinn_mul(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Multiply each element of two input tensors.
Definition: mul.c:46
int csinn_prod(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Calculate the product value of input tensor on the specified dimensions.
Definition: prod.c:53
int csinn_stack(struct csinn_tensor **inputs, struct csinn_tensor *output, struct csinn_stack_params *params)
Stack/splice several input tensors.
Definition: stack.c:46
int csinn_isnan_bool(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate isnan bool for each element of input tensor.
Definition: isnan.c:46
int csinn_global_maxpool2d(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_pool_params *params)
Two-dimensional global max pooling function.
Definition: global_maxpool.c:46
int csinn_reshape(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reshape_params *params)
Reset the dimensions of input tensor. Reshape is essentially a memcpy.
Definition: reshape.c:46
int csinn_threshold_relu(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_relu_params *params)
Calculate Threshold ReLU for each element of input tensor.
Definition: threshold_relu.c:46
int csinn_global_avgpool2d(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_pool_params *params)
Two-dimensional global average pooling function.
Definition: global_averagepool.c:46
int csinn_cumprod(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_cumprod_params *params)
Calculate the cumulative product value of input tensor on the specified dimensions.
Definition: cumprod.c:46
int csinn_expm1(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate expm1 for each element of input tensor.
Definition: expm1.c:46
int csinn_negative(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate negtive for each element of input tensor.
Definition: negative.c:46
int csinn_cache_matmul(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *weight, struct csinn_tensor *bias, struct csinn_cache_matmul_params *params)
Cache matmul function.
Definition: cache_matmul.c:47
int csinn_add(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Add each element of two input tensors.
Definition: add.c:46
int csinn_unstack(struct csinn_tensor *input, struct csinn_tensor **output, struct csinn_unstack_params *params)
Unstack input tensor.
Definition: unstack.c:46
int csinn_tan(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate tan for each element of input tensor.
Definition: tan.c:46
int csinn_one_hot(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_one_hot_params *params)
Return One-Hot eigenvector.
Definition: one_hot.c:46
int csinn_reduce_logsumexp(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Calculate the reduced LogSumExp value of input tensor on the specified dimensions.
Definition: reduce_logsumexp.c:46
int csinn_arange(struct csinn_tensor *output, struct csinn_arange_params *params)
Return the position information within the range according to the parameters.
Definition: arange.c:45
int csinn_exp(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate exp for each element of input tensor.
Definition: exp.c:46
int csinn_erf(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate erf for each element of input tensor.
Definition: erf.c:46
int csinn_lrn(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_lrn_params *params)
Calculate Local Response Normalization for each element of input tensor.
Definition: lrn.c:46
int csinn_roipool(struct csinn_tensor *data, struct csinn_tensor *rois, struct csinn_tensor *output, struct csinn_roi_pool_params *params)
ROI pooling function.
Definition: roipool.c:46
int csinn_proposal(struct csinn_tensor *cls_prob, struct csinn_tensor *bbox_pred, struct csinn_tensor *im_info, struct csinn_tensor *output, struct csinn_proposal_params *params)
Proposal initialization function.
Definition: proposal.c:47
int csinn_not(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate NOT for each element of two input tensors.
Definition: not.c:46
int csinn_space_to_batch_nd(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_space_to_batch_nd_params *params)
Fill the batch according to the spatial dimensions such as height and width of input tensor.
Definition: space_to_batch_nd.c:46
int csinn_data_convert(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Data convert function.
Definition: data_convert.c:46
int csinn_batch_to_space_nd(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_batch_to_space_nd_params *params)
Fill the batch into the spatial dimensions such as height and width of input tensor.
Definition: batch_to_space_nd.c:46
int csinn_maxpool3d(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_pool_params *params)
Three-dimensional max pooling function.
Definition: maxpool3d.c:51
int csinn_col2im(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *kernel, struct csinn_col2im_params *params)
Convert columns to image.
Definition: col2im.c:46
int csinn_logical_or(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Calculate Logical OR for each element of two input tensors.
Definition: logical_or.c:46
int csinn_softplus(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate Softplus for each element of input tensor.
Definition: softplus.c:46
int csinn_argmin(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Calculate the index of the minimum value of input tensor on the specified dimensions.
Definition: argmin.c:50
int csinn_segment_max(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_segment_params *params)
Compare the maximum value of input tensor at the specified positions.
Definition: segment_max.c:51
int csinn_conv3d(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *kernel, struct csinn_tensor *bias, struct csinn_conv3d_params *params)
Three-dimensional convolution function.
Definition: convolution3d.c:52
int csinn_cos(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate cos for each element of input tensor.
Definition: cos.c:46
int csinn_asin(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate asin for each element of input tensor.
Definition: asin.c:46
int csinn_argmax(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Calculate the index of the maximum value of input tensor on the specified dimensions.
Definition: argmax.c:51
int csinn_fsmn(struct csinn_tensor *frame, struct csinn_tensor *l_filter, struct csinn_tensor *r_filter, struct csinn_tensor *frame_sequence, struct csinn_tensor *frame_counter, struct csinn_tensor *output, struct csinn_fsmn_params *params)
Feedforward Sequential Memory Network function.
Definition: fsmn.c:48
int csinn_min(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Calculate the min value of input tensor on the specified dimensions.
Definition: min.c:51
int csinn_layer_norm(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *gamma, struct csinn_tensor *beta, struct csinn_layer_norm_params *params)
Layer normalization function.
Definition: layer_norm.c:47
int csinn_cast(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_cast_params *params)
Data convert function.
Definition: cast.c:46
int csinn_segment_sum(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_segment_params *params)
Calculate the sum of input tensor at the specified positions.
Definition: segment_sum.c:52
int csinn_acosh(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate acosh for each element of input tensor.
Definition: acosh.c:46
int csinn_gather(struct csinn_tensor *input, struct csinn_tensor *indices, struct csinn_tensor *output, struct csinn_gather_params *params)
Gather the data in input tensor according to the specified index.
Definition: gather.c:46
int csinn_conv1d(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *kernel, struct csinn_tensor *bias, struct csinn_conv1d_params *params)
One-dimensional convolution function.
Definition: convolution1d.c:66
int csinn_sum(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Calculate the sum of input tensor on the specified dimensions.
Definition: sum.c:51
int csinn_im2col(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_im2col_params *params)
Convert image to columns.
Definition: im2col.c:46
int csinn_batch_normalization(struct csinn_tensor *input, struct csinn_tensor *mean, struct csinn_tensor *variance, struct csinn_tensor *gamma, struct csinn_tensor *beta, struct csinn_tensor *output, struct csinn_bn_params *params)
Batch normalization function.
Definition: batch_normalization.c:48
int csinn_square(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate square for each element of input tensor.
Definition: square.c:46
int csinn_ceil(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate ceil for each element of input tensor.
Definition: ceil.c:46
int csinn_abs(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate abs for each element of input tensor.
Definition: abs.c:46
int csinn_maxpool2d_locat(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_pool_params *params)
Max pooling and with locating information function.
Definition: maxpool2d_locat.c:46
int csinn_logical_not(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate Logical NOT for each element of two input tensors.
Definition: logical_not.c:46
int csinn_strided_slice(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_strided_slice_params *params)
Slice the input tensor by stride.
Definition: strided_slice.c:46
int csinn_psroipooling(struct csinn_tensor *data, struct csinn_tensor *rois, struct csinn_tensor *output, struct csinn_psroipooling_params *params)
PS ROI pooling function.
Definition: psroipooling.c:46
int csinn_leaky_relu(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_relu_params *params)
Calculate Leaky ReLU for each element of input tensor.
Definition: leaky_relu.c:46
int csinn_relu1(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_relu_params *params)
Calculate ReLU1 for each element of input tensor.
Definition: relu1.c:46
int csinn_avgpool2d(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_pool_params *params)
Two-dimensional average pooling function.
Definition: averagepool.c:46
int csinn_equal(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Compare whether input0 is equal to input1 for each element of two input tensors.
Definition: equal.c:46
int csinn_where(struct csinn_tensor *condition, struct csinn_tensor *x, struct csinn_tensor *y, struct csinn_tensor *output, struct csinn_where_params *params)
Select each element from two input tensors according to the condition tensor.
Definition: where.c:46
int csinn_and(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Calculate AND for each element of two input tensors.
Definition: and.c:46
int csinn_reverse(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reverse_params *params)
Flip the specified dimension of input tensor.
Definition: reverse.c:46
int csinn_split(struct csinn_tensor *input, struct csinn_tensor **output, struct csinn_split_params *params)
Split input tensor into multiple tensors according to the specified dimensions.
Definition: split.c:46
int csinn_space_to_depth(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_space_to_depth_params *params)
Fill the depth according to the height and width of input tensor.
Definition: space_to_depth.c:46
int csinn_floor_divide(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Floor divide each element of two input tensors.
Definition: floor_divide.c:46
int csinn_squeeze(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_squeeze_params *params)
Tile the data in input tensor.
Definition: squeeze.c:46
int csinn_broadcast_to(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_broadcast_to_params *params)
Broadcast the input tensor.
Definition: broadcast_to.c:46
int csinn_concat(struct csinn_tensor **input, struct csinn_tensor *output, struct csinn_concat_params *params)
Concat multiple input tensors according to the specified dimension.
Definition: concat.c:46
int csinn_sinh(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate sinh for each element of input tensor.
Definition: sinh.c:46
int csinn_round(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate round for each element of input tensor.
Definition: round.c:46
int csinn_less(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Compare whether input0 is less than input1 for each element of two input tensors.
Definition: less.c:46
int csinn_batch_to_space(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_batch_to_space_params *params)
Fill the batch into the height and width of input tensor.
Definition: batch_to_space.c:46
int csinn_sign(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate sign for each element of input tensor.
Definition: sign.c:46
int csinn_softsign(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate softsign for each element of input tensor.
Definition: softsign.c:46
int csinn_segment_mean(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_segment_params *params)
Calculate the mean value of input tensor at the specified positions.
Definition: segment_mean.c:50
int csinn_roi_align(struct csinn_tensor *data, struct csinn_tensor *rois, struct csinn_tensor *output, struct csinn_roi_align_params *params)
ROI align function.
Definition: roialign.c:46
int csinn_reduce_max(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Calculate the reduced maximum value of input tensor on the specified dimensions.
Definition: reduce_max.c:46
int csinn_depthwise_conv2d_relu(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *kernel, struct csinn_tensor *bias, struct csinn_conv2d_params *params)
Two-dimensional depthwise convolution and ReLU fusion function.
Definition: depthwise_conv2d_relu.c:49
int csinn_clip(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_clip_params *params)
Saturate the input tensor.
Definition: clip.c:46
int csinn_l2pool(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_pool_params *params)
L2 pooling function.
Definition: l2pool.c:46
int csinn_acos(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate acos for each element of input tensor.
Definition: acos.c:46
int csinn_prelu(struct csinn_tensor *input, struct csinn_tensor *alpha, struct csinn_tensor *output, struct csinn_prelu_params *params)
Calculate PReLU for each element of input tensor.
Definition: prelu.c:46
int csinn_reduce_prod(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Calculate the reduced product value of input tensor on the specified dimensions.
Definition: reduce_prod.c:46
int csinn_conv2d_relu(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *kernel, struct csinn_tensor *bias, struct csinn_conv2d_params *params)
Two-dimensional convolution and ReLU fusion function.
Definition: convolution_relu.c:66
int csinn_yuv_rgb_scale(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Convert YUV to RGB.
Definition: yuv_rgb_scale.c:46
int csinn_fullyconnected(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *weights, struct csinn_tensor *bias, struct csinn_fc_params *params)
Fully Connected function.
Definition: fullyconnected.c:47
int csinn_trunc(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate trunc for each element of input tensor.
Definition: trunc.c:46
int csinn_maximum(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Calculate MAX for each element of two input tensors.
Definition: maximum.c:46
int csinn_where_softmax(struct csinn_tensor *condition, struct csinn_tensor *y, struct csinn_tensor *output, struct csinn_where_softmax_params *params)
Select each element from two input tensors according to the condition tensor.
Definition: where_softmax.c:46
int csinn_pad(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_pad_params *params)
Padding input tensor.
Definition: pad.c:46
int csinn_shuffle_channel(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_shuffle_channel_params *params)
Group input tensor and shuffle them by group.
Definition: shuffle_channel.c:46
int csinn_softrelu(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_relu_params *params)
Calculate Soft ReLU for each element of input tensor.
Definition: softrelu.c:46
int csinn_sqrt(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate sqrt for each element of input tensor.
Definition: sqrt.c:46
int csinn_scatter_nd(struct csinn_tensor *input, struct csinn_tensor *indices, struct csinn_tensor *updates, struct csinn_tensor *output, struct csinn_scatter_nd_params *params)
Scatter nd function.
Definition: scatter.c:47
int csinn_greater_equal(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Compare whether input0 is greater than or equal to input1 for each element of two input tensors.
Definition: greater_equal.c:46
int csinn_crop(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_crop_params *params)
Crop input tensor.
Definition: crop.c:46
int csinn_power(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Power function.
Definition: power.c:46
int csinn_asinh(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate asinh for each element of input tensor.
Definition: asinh.c:46
int csinn_elu(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_relu_params *params)
Calculate ELU for each element of input tensor.
Definition: elu.c:46
int csinn_sequence_mask(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_sequence_mask_params *params)
Get the mask of sequence.
Definition: sequence_mask.c:41
int csinn_shape(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_shape_params *params)
Get the dimension information of input tensor.
Definition: shape.c:46
int csinn_rsqrt(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate rsqrt for each element of input tensor.
Definition: rsqrt.c:46
int csinn_ndarray_size(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_ndarray_size_params *params)
Calculate the size of input tensor data.
Definition: ndarray_size.c:46
int csinn_div(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Divide each element of two input tensors.
Definition: div.c:46
int csinn_any(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Calculate Reduce OR of input tensor on the specified dimensions.
Definition: any.c:46
int csinn_cumsum(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_cumsum_params *params)
Calculate the cumulative sum of input tensor on the specified dimensions.
Definition: cumsum.c:46
int csinn_tanh(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate tan for each element of input tensor.
Definition: tanh.c:46
int csinn_relun(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_relu_params *params)
Calculate ReLUn for each element of input tensor.
Definition: relun.c:46
int csinn_group_conv2d(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *kernel, struct csinn_tensor *bias, struct csinn_conv2d_params *params)
Two-dimensional group convolution function.
Definition: group_conv2d.c:48
int csinn_floor_mod(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Calculate Floor MOD for each element of two input tensors.
Definition: floor_mod.c:46
int csinn_logical_xor(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Calculate Logical XOR for each element of two input tensors.
Definition: logical_xor.c:46
int csinn_depthwise_conv2d(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *kernel, struct csinn_tensor *bias, struct csinn_conv2d_params *params)
Two-dimensional depthwise convolution function.
Definition: depthwise_conv2d.c:47
int csinn_log1p(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate log1p for each element of input tensor.
Definition: log1p.c:46
int csinn_segment_min(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_segment_params *params)
Compare the minimum value of input tensor at the specified positions.
Definition: segment_min.c:52
int csinn_reduce_sum(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
Calculate the reduced sum of input tensor on the specified dimensions.
Definition: reduce_sum.c:46
int csinn_slice(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_slice_params *params)
Slice input tensor.
Definition: slice.c:50
int csinn_cosh(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate cosh for each element of input tensor.
Definition: cosh.c:46
int csinn_avgpool3d(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_pool_params *params)
Three-dimensional average pooling function.
Definition: averagepool3d.c:46
int csinn_softmax(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_softmax_params *params)
Calculate Softmax for each element of input tensor.
Definition: softmax.c:46
int csinn_resize(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_resize_params *params)
Resize input tensor.
Definition: resize.c:46
int csinn_atanh(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate atanh for each element of input tensor.
Definition: atanh.c:46
int csinn_reorg(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reorg_params *params)
Cut the height and width, then splice them along the channel.
Definition: reorg.c:46
int csinn_or(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Calculate OR for each element of two input tensors.
Definition: or.c:46
int csinn_log(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate log for each element of input tensor.
Definition: log.c:46
int csinn_atan(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
Calculate atan for each element of input tensor.
Definition: atan.c:46
int csinn_sigmoid(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_sigmoid_params *params)
Calculate sigmoid for each element of input tensor.
Definition: sigmoid.c:46
int csinn_flatten(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_flatten_params *params)
Flatten input tensor.
Definition: flatten.c:46
int csinn_deconv2d(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *kernel, struct csinn_tensor *bias, struct csinn_conv2d_params *params)
Two-dimensional deconvolution function.
Definition: deconvolution.c:54
int csinn_sub(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Subtract each element of two input tensors.
Definition: sub.c:46
int csinn_mod(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Calculate MOD for each element of two input tensors.
Definition: mod.c:46
int csinn_topk(struct csinn_tensor *input, struct csinn_tensor *output1, struct csinn_tensor *output2, struct csinn_topk_params *params)
Find the maximum k elements and their indices of input tensor.
Definition: topk.c:46
int csinn_conv2d(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *kernel, struct csinn_tensor *bias, struct csinn_conv2d_params *params)
Two-dimensional convolution function.
Definition: convolution.c:66
int csinn_non_max_suppression(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_non_max_suppression_params *params)
Non-max suppression function.
Definition: non_max_suppression.c:47
int csinn_maxpool2d(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_pool_params *params)
Two-dimensional max pooling function.
Definition: maxpool.c:46
int csinn_minimum(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Calculate MIN for each element of two input tensors.
Definition: minimum.c:46
int csinn_not_equal(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Compare whether input0 is not equal to input1 for each element of two input tensors.
Definition: not_equal.c:46
int csinn_hard_sigmoid(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_sigmoid_params *params)
Calculate hard sigmoid for each element of input tensor.
Definition: hard_sigmoid.c:46
int csinn_log_softmax(struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_softmax_params *params)
Calculate Log Softmax for each element of input tensor.
Definition: log_softmax.c:46
int csinn_less_equal(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Compare whether input0 is less than or equal to input1 for each element of two input tensors.
Definition: less_equal.c:46
int csinn_xor(struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
Calculate XOR for each element of two input tensors.
Definition: xor.c:46
Definition: csinn_data_structure.h:893
Definition: csinn_data_structure.h:969
Definition: csinn_data_structure.h:959
Definition: csinn_data_structure.h:705
Definition: csinn_data_structure.h:1074
Definition: csinn_data_structure.h:1117
Definition: csinn_data_structure.h:1081
Definition: csinn_data_structure.h:1024
Definition: csinn_data_structure.h:780
Definition: csinn_data_structure.h:1162
Definition: csinn_data_structure.h:553
Definition: csinn_data_structure.h:575
Definition: csinn_data_structure.h:854
Definition: csinn_data_structure.h:1067
Definition: csinn_data_structure.h:1060
Definition: csinn_data_structure.h:984
Definition: csinn_data_structure.h:753
Definition: csinn_data_structure.h:837
Definition: csinn_data_structure.h:596
Definition: csinn_data_structure.h:849
Definition: csinn_data_structure.h:543
Definition: csinn_data_structure.h:924
Definition: csinn_data_structure.h:919
Definition: csinn_data_structure.h:1011
Definition: csinn_data_structure.h:715
Definition: csinn_data_structure.h:727
Definition: csinn_data_structure.h:746
Definition: csinn_data_structure.h:936
Definition: csinn_data_structure.h:1109
Definition: csinn_data_structure.h:991
Definition: csinn_data_structure.h:763
Definition: csinn_data_structure.h:605
Definition: csinn_data_structure.h:686
Definition: csinn_data_structure.h:787
Definition: csinn_data_structure.h:808
Definition: csinn_data_structure.h:1033
Definition: csinn_data_structure.h:676
Definition: csinn_data_structure.h:1047
Definition: csinn_data_structure.h:825
Definition: csinn_data_structure.h:773
Definition: csinn_data_structure.h:843
Definition: csinn_data_structure.h:636
Definition: csinn_data_structure.h:649
Definition: csinn_data_structure.h:666
Definition: csinn_data_structure.h:1053
Definition: csinn_data_structure.h:758
Definition: csinn_data_structure.h:1002
Definition: csinn_data_structure.h:832
Definition: csinn_data_structure.h:1097
Definition: csinn_data_structure.h:671
Definition: csinn_data_structure.h:661
Definition: csinn_data_structure.h:862
Definition: csinn_data_structure.h:692
Definition: csinn_data_structure.h:951
Definition: csinn_data_structure.h:941
Definition: csinn_data_structure.h:978
Definition: csinn_data_structure.h:871
Definition: csinn_data_structure.h:929
Definition: csinn_data_structure.h:879
Definition: csinn_data_structure.h:1088
Definition: csinn_data_structure.h:475
Definition: csinn_data_structure.h:886
Definition: csinn_data_structure.h:1103
Definition: csinn_data_structure.h:818
Definition: csinn_data_structure.h:627
Definition: csinn_data_structure.h:912
Definition: csinn_data_structure.h:907
Definition: csinn_data_structure.h:698