SHL 2.2.x
Loading...
Searching...
No Matches
Initialize function

Functions

int csinn_abs_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 Abs initialization function. More...
 
int csinn_acos_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 acos initialization function More...
 
int csinn_acosh_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 acosh initialization function More...
 
int csinn_add_init (struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
 Add initialization function. More...
 
int csinn_all_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
 All initialization function. More...
 
int csinn_and_init (struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
 AND initialization function. More...
 
int csinn_any_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
 Any initialization function. More...
 
int csinn_arange_init (struct csinn_tensor *output, struct csinn_arange_params *params)
 Arange initialization function. More...
 
int csinn_argmax_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
 Argmax initialization function. More...
 
int csinn_argmin_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
 Argmin initialization function. More...
 
int csinn_asin_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 asin initialization function More...
 
int csinn_asinh_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 asinh initialization function More...
 
int csinn_atan_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 atan initialization function More...
 
int csinn_atanh_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 atanh initialization function More...
 
int csinn_avgpool2d_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_pool_params *params)
 Two-dimensional average pooling initialization function. More...
 
int csinn_avgpool3d_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_pool_params *params)
 Three-dimensional average pooling initialization function. More...
 
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. More...
 
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. More...
 
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. More...
 
int csinn_broadcast_to_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_broadcast_to_params *params)
 Broadcast to initialization function. More...
 
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. More...
 
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. More...
 
int csinn_cast_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_cast_params *params)
 Data convert initialization function. More...
 
int csinn_ceil_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 Ceil initialization function. More...
 
int csinn_clip_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_clip_params *params)
 Clip initialization function. More...
 
int csinn_col2im_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tensor *kernel, struct csinn_col2im_params *params)
 col2im initialization function More...
 
int csinn_concat_init (struct csinn_tensor **input, struct csinn_tensor *output, struct csinn_concat_params *params)
 Concat initialization function. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
int csinn_cos_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 col initialization function More...
 
int csinn_cosh_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 colh function More...
 
int csinn_crop_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_crop_params *params)
 Crop initialization function. More...
 
int csinn_cumprod_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_cumprod_params *params)
 Cumprod initialization function. More...
 
int csinn_cumsum_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_cumsum_params *params)
 Cumsum initialization function. More...
 
int csinn_data_convert_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 Data convert initialization function. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
int csinn_div_init (struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
 Div initialization function. More...
 
int csinn_elu_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_relu_params *params)
 ELU initialization function. More...
 
int csinn_equal_init (struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
 Equal initialization function. More...
 
int csinn_erf_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 Erf initialization function. More...
 
int csinn_exp_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 Exp initialization function. More...
 
int csinn_expand_dims_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_expand_dims_params *params)
 Expand dims initialization function. More...
 
int csinn_expm1_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 Expm1 initialization function. More...
 
int csinn_flatten_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_flatten_params *params)
 Flatten initialization function. More...
 
int csinn_floor_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 Floor initialization function. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
int csinn_gather_init (struct csinn_tensor *input, struct csinn_tensor *indices, struct csinn_tensor *output, struct csinn_gather_params *params)
 Gather initialization function. More...
 
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. More...
 
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. More...
 
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. More...
 
int csinn_greater_init (struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
 Greater initialization function. More...
 
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. More...
 
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. More...
 
int csinn_hard_sigmoid_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_sigmoid_params *params)
 Hard sigmoid initialization function. More...
 
int csinn_im2col_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_im2col_params *params)
 im2col initialization function More...
 
int csinn_isnan_bool_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 Isnan bool initialization function. More...
 
int csinn_l2_normalization_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_l2n_params *params)
 L2 normalization initialization function. More...
 
int csinn_l2pool_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_pool_params *params)
 L2 pooling initialization function. More...
 
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. More...
 
int csinn_leaky_relu_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_relu_params *params)
 Leaky ReLU initialization function. More...
 
int csinn_less_init (struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
 Less initialization function. More...
 
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. More...
 
int csinn_log_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 Log initialization function. More...
 
int csinn_log1p_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 Log1p initialization function. More...
 
int csinn_log_softmax_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_softmax_params *params)
 Log softmax initialization function. More...
 
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. More...
 
int csinn_logical_not_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 Logical NOT initialization function. More...
 
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. More...
 
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. More...
 
int csinn_lrn_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_lrn_params *params)
 Local Response Normalization initialization function. More...
 
int csinn_matmul_init (struct csinn_tensor *mat0, struct csinn_tensor *mat1, struct csinn_tensor *output, struct csinn_matmul_params *params)
 Matmul initialization function. More...
 
int csinn_max_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
 Max initialization function. More...
 
int csinn_maximum_init (struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
 Maximum initialization function. More...
 
int csinn_maxpool2d_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_pool_params *params)
 Two-dimensional max pooling initialization function. More...
 
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. More...
 
int csinn_maxpool3d_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_pool_params *params)
 Three-dimensional max pooling initialization function. More...
 
int csinn_mean_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
 Mean initialization function. More...
 
int csinn_min_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
 Min initialization function. More...
 
int csinn_minimum_init (struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
 Minimum initialization function. More...
 
int csinn_mod_init (struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
 Mod initialization function. More...
 
int csinn_mul_init (struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
 Mul initialization function. More...
 
int csinn_ndarray_size_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_ndarray_size_params *params)
 Ndarray size initialization function. More...
 
int csinn_negative_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 Negative initialization function. More...
 
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. More...
 
int csinn_not_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 NOT initialization function. More...
 
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. More...
 
int csinn_one_hot_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_one_hot_params *params)
 One Hot initialization function. More...
 
int csinn_or_init (struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
 OR initialization function. More...
 
int csinn_pad_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_pad_params *params)
 Pad initialization function. More...
 
int csinn_power_init (struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
 Power initialization function. More...
 
int csinn_prelu_init (struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_prelu_params *params)
 PReLU initialization function. More...
 
int csinn_prod_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
 Prod initialization function. More...
 
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. More...
 
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. More...
 
int csinn_reduce_logsumexp_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
 Reduce LogSumExp initialization function. More...
 
int csinn_reduce_max_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
 Reduce max initialization function. More...
 
int csinn_reduce_mean_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
 Reduce mean initialization function. More...
 
int csinn_reduce_min_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
 Reduce min initialization function. More...
 
int csinn_reduce_prod_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
 Reduce prod initialization function. More...
 
int csinn_reduce_sum_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
 Reduce sum initialization function. More...
 
int csinn_relu_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_relu_params *params)
 ReLU initialization function. More...
 
int csinn_relu1_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_relu_params *params)
 ReLU1 initialization function. More...
 
int csinn_relu6_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_relu_params *params)
 ReLU6 initialization function. More...
 
int csinn_relun_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_relu_params *params)
 ReLUn initialization function. More...
 
int csinn_reorg_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reorg_params *params)
 Reorg initialization function. More...
 
int csinn_reshape_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reshape_params *params)
 Reshape initialization function. More...
 
int csinn_resize_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_resize_params *params)
 Resize initialization function. More...
 
int csinn_reverse_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reverse_params *params)
 Reverse initialization function. More...
 
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. More...
 
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. More...
 
int csinn_round_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 Round initialization function. More...
 
int csinn_rsqrt_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 Rsqrt initialization function. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
int csinn_shape_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_shape_params *params)
 Shape initialization function. More...
 
int csinn_shuffle_channel_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_shuffle_channel_params *params)
 Shuffle channel initialization function. More...
 
int csinn_sigmoid_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_sigmoid_params *params)
 Sigmoid initialization function. More...
 
int csinn_sign_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 Sign initialization function. More...
 
int csinn_sin_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 sin initialization function More...
 
int csinn_sinh_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 sinh initialization function More...
 
int csinn_slice_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_slice_params *params)
 Slice initialization function. More...
 
int csinn_softmax_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_softmax_params *params)
 Softmax initialization function. More...
 
int csinn_softplus_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 Softplus initialization function. More...
 
int csinn_softrelu_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_relu_params *params)
 Soft ReLU initialization function. More...
 
int csinn_softsign_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 Softsign initialization function. More...
 
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. More...
 
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. More...
 
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. More...
 
int csinn_split_init (struct csinn_tensor *input, struct csinn_tensor **output, struct csinn_split_params *params)
 Split initialization function. More...
 
int csinn_sqrt_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 Sqrt initialization function. More...
 
int csinn_square_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 Square initialization function. More...
 
int csinn_squeeze_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_squeeze_params *params)
 Squeeze initialization function. More...
 
int csinn_stack_init (struct csinn_tensor **input, struct csinn_tensor *output, struct csinn_stack_params *params)
 Stack initialization function. More...
 
int csinn_strided_slice_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_strided_slice_params *params)
 Stride slice initialization function. More...
 
int csinn_sub_init (struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
 Sub initialization function. More...
 
int csinn_sum_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_reduce_params *params)
 Sum initialization function. More...
 
int csinn_tan_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 tan initialization function More...
 
int csinn_tanh_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 tanh initialization function More...
 
int csinn_threshold_relu_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_relu_params *params)
 Threshold ReLU initialization function. More...
 
int csinn_tile_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_tile_params *params)
 Tile initialization function. More...
 
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. More...
 
int csinn_transpose_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_transpose_params *params)
 Transpose initialization function. More...
 
int csinn_trunc_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 Trunc initialization function. More...
 
int csinn_unpooling_init (struct csinn_tensor *input, struct csinn_tensor *mask, struct csinn_tensor *output, struct csinn_unpooling_params *params)
 Unpooling initialization function. More...
 
int csinn_unstack_init (struct csinn_tensor *input, struct csinn_tensor **output, struct csinn_unstack_params *params)
 Unstack initialization function. More...
 
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. More...
 
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. More...
 
int csinn_xor_init (struct csinn_tensor *input0, struct csinn_tensor *input1, struct csinn_tensor *output, struct csinn_diso_params *params)
 XOR initialization function. More...
 
int csinn_yuv_rgb_scale_init (struct csinn_tensor *input, struct csinn_tensor *output, struct csinn_siso_params *params)
 YUV RGB scale initialization function. More...
 

Detailed Description

Function Documentation

◆ csinn_abs_init()

int csinn_abs_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

Abs initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsAbs parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_acos_init()

int csinn_acos_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

acos initialization function

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsacos parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_acosh_init()

int csinn_acosh_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

acosh initialization function

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsacosh parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_add_init()

int csinn_add_init ( struct csinn_tensor input0,
struct csinn_tensor input1,
struct csinn_tensor output,
struct csinn_diso_params params 
)

Add initialization function.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsAdd parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_all_init()

int csinn_all_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_reduce_params params 
)

All initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsAll parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_and_init()

int csinn_and_init ( struct csinn_tensor input0,
struct csinn_tensor input1,
struct csinn_tensor output,
struct csinn_diso_params params 
)

AND initialization function.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsAND parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_any_init()

int csinn_any_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_reduce_params params 
)

Any initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsAny parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_arange_init()

int csinn_arange_init ( struct csinn_tensor output,
struct csinn_arange_params params 
)

Arange initialization function.

Parameters
[out]outputPointer to the output tensor
[in]paramsArange parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_argmax_init()

int csinn_argmax_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_reduce_params params 
)

Argmax initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsArgmax parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_argmin_init()

int csinn_argmin_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_reduce_params params 
)

Argmin initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsArgmin parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_asin_init()

int csinn_asin_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

asin initialization function

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsasin parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_asinh_init()

int csinn_asinh_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

asinh initialization function

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsasinh parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_atan_init()

int csinn_atan_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

atan initialization function

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsatan parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_atanh_init()

int csinn_atanh_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

atanh initialization function

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsatanh parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_avgpool2d_init()

int csinn_avgpool2d_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_pool_params params 
)

Two-dimensional average pooling initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsPooling parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_avgpool3d_init()

int csinn_avgpool3d_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_pool_params params 
)

Three-dimensional average pooling initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsPooling parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_batch_normalization_init()

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.

Parameters
[in]inputPointer to the input tensor
[in]meanMean value used to calculate BN
[in]varianceVariance used to caculate BN
[in]gammaγ coefficient used to caculate BN
[in]betaβ coefficient used to caculate BN
[out]outputPointer to the output tensor
[in]paramsBatch normalization parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_batch_to_space_init()

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.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsBatch to space parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_batch_to_space_nd_init()

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.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsBatch to space nd parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_broadcast_to_init()

int csinn_broadcast_to_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_broadcast_to_params params 
)

Broadcast to initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsBroadcast to parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_cache_conv1d_init()

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.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]weightPointer to the weight tensor
[in]biasPointer to the bias tensor
[in]paramsCache conv1d parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_cache_matmul_init()

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.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]weightPointer to the weight tensor
[in]biasPointer to the bias tensor
[in]paramsCache matmul parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_cast_init()

int csinn_cast_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_cast_params params 
)

Data convert initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsData Cast parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_ceil_init()

int csinn_ceil_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

Ceil initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsCeil parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_clip_init()

int csinn_clip_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_clip_params params 
)

Clip initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsClip parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_col2im_init()

int csinn_col2im_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_tensor kernel,
struct csinn_col2im_params params 
)

col2im initialization function

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]kernelPointer to the weight tensor
[in]paramscol2im parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_concat_init()

int csinn_concat_init ( struct csinn_tensor **  input,
struct csinn_tensor output,
struct csinn_concat_params params 
)

Concat initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsConcat parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_conv2d_init()

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.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]kernelPointer to the weight tensor
[in]biasPointer to the bias tensor
[in]paramsConvolution parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_conv1d_init()

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.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]kernelPointer to the weight tensor
[in]biasPointer to the bias tensor
[in]paramsConvolution parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_conv3d_init()

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.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]kernelPointer to the weight tensor
[in]biasPointer to the bias tensor
[in]paramsConvolution parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_conv2d_relu_init()

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.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]kernelPointer to the weight tensor
[in]biasPointer to the bias tensor
[in]paramsConvolution parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_conv2d_relu6_init()

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.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]kernelPointer to the weight tensor
[in]biasPointer to the bias tensor
[in]paramsConvolution parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_cos_init()

int csinn_cos_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

col initialization function

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramscol parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_cosh_init()

int csinn_cosh_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

colh function

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramscolh parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_crop_init()

int csinn_crop_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_crop_params params 
)

Crop initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsCrop parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_cumprod_init()

int csinn_cumprod_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_cumprod_params params 
)

Cumprod initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsCumprod parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_cumsum_init()

int csinn_cumsum_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_cumsum_params params 
)

Cumsum initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsCumsum parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_data_convert_init()

int csinn_data_convert_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

Data convert initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsData convert parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_deconv2d_init()

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.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]kernelPointer to the weight tensor
[in]biasPointer to the bias tensor
[in]paramsConvolution parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_deconv3d_init()

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.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]kernelPointer to the weight tensor
[in]biasPointer to the bias tensor
[in]paramsConvolution parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_depth_to_space_init()

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.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsDepth to space parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_depthwise_conv2d_init()

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.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]kernelPointer to the weight tensor
[in]biasPointer to the bias tensor
[in]paramsConvolution parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_depthwise_conv2d_relu_init()

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.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]kernelPointer to the weight tensor
[in]biasPointer to the bias tensor
[in]paramsConvolution parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_div_init()

int csinn_div_init ( struct csinn_tensor input0,
struct csinn_tensor input1,
struct csinn_tensor output,
struct csinn_diso_params params 
)

Div initialization function.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsDiv parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_elu_init()

int csinn_elu_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_relu_params params 
)

ELU initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsELU parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_equal_init()

int csinn_equal_init ( struct csinn_tensor input0,
struct csinn_tensor input1,
struct csinn_tensor output,
struct csinn_diso_params params 
)

Equal initialization function.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsEqual parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_erf_init()

int csinn_erf_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

Erf initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsErf parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_exp_init()

int csinn_exp_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

Exp initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsExp parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_expand_dims_init()

int csinn_expand_dims_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_expand_dims_params params 
)

Expand dims initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsExpand dims parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_expm1_init()

int csinn_expm1_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

Expm1 initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsExpm1 parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_flatten_init()

int csinn_flatten_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_flatten_params params 
)

Flatten initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsFlatten parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_floor_init()

int csinn_floor_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

Floor initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsFloor parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_floor_divide_init()

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.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsFloor div parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_floor_mod_init()

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.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsFloor mod parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_fsmn_init()

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.

Parameters
[in]framePoint to the current input frame data
[in]l_filterLeft coefficient matrix, used for matrix calculation with past frames
[in]r_filterRight coefficient matrix for matrix calculation with future frames
[in]frame_sequencePoint to all currently calculated frame data
[in]frame_counterFrame counter
[out]outputPointer to the output tensor
[in]paramsFSMN parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_fullyconnected_init()

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.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]weightsPointer to the weight tensor
[in]biasPointer to the bias tensor
[in]paramsFully Connected parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_gather_init()

int csinn_gather_init ( struct csinn_tensor input,
struct csinn_tensor indices,
struct csinn_tensor output,
struct csinn_gather_params params 
)

Gather initialization function.

Parameters
[in]inputPointer to the input tensor
[in]indicesPointer to the index tensor
[out]outputPointer to the output tensor
[in]paramsGather parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_gather_nd_init()

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.

Parameters
[in]inputPointer to the input tensor
[in]indicesPointer to the index tensor
[out]outputPointer to the output tensor
[in]paramsGather_nd parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_global_avgpool2d_init()

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.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsPooling parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_global_maxpool2d_init()

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.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsPooling parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_greater_init()

int csinn_greater_init ( struct csinn_tensor input0,
struct csinn_tensor input1,
struct csinn_tensor output,
struct csinn_diso_params params 
)

Greater initialization function.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsGreater parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_greater_equal_init()

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.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsGreater equal parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_group_conv2d_init()

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.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]kernelPointer to the weight tensor
[in]biasPointer to the bias tensor
[in]paramsConvolution parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_hard_sigmoid_init()

int csinn_hard_sigmoid_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_sigmoid_params params 
)

Hard sigmoid initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsHard sigmoid parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_im2col_init()

int csinn_im2col_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_im2col_params params 
)

im2col initialization function

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsim2col parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_isnan_bool_init()

int csinn_isnan_bool_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

Isnan bool initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsIsnan bool parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_l2_normalization_init()

int csinn_l2_normalization_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_l2n_params params 
)

L2 normalization initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsL2 normalization parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_l2pool_init()

int csinn_l2pool_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_pool_params params 
)

L2 pooling initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsPooling parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_layer_norm_init()

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.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]gammaγ coefficient used to caculate LN
[in]betaβ coefficient used to caculate LN
[in]paramsLayer normalization parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_leaky_relu_init()

int csinn_leaky_relu_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_relu_params params 
)

Leaky ReLU initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsLeaky ReLU parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_less_init()

int csinn_less_init ( struct csinn_tensor input0,
struct csinn_tensor input1,
struct csinn_tensor output,
struct csinn_diso_params params 
)

Less initialization function.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsLess parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_less_equal_init()

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.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsLess equal parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_log_init()

int csinn_log_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

Log initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsLog parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_log1p_init()

int csinn_log1p_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

Log1p initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsLog1p parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_log_softmax_init()

int csinn_log_softmax_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_softmax_params params 
)

Log softmax initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsLog softmax parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_logical_and_init()

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.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsLogical AND parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_logical_not_init()

int csinn_logical_not_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

Logical NOT initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsLogical NOT parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_logical_or_init()

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.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsLogical OR parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_logical_xor_init()

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.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsLogical XOR parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_lrn_init()

int csinn_lrn_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_lrn_params params 
)

Local Response Normalization initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsLRN parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_matmul_init()

int csinn_matmul_init ( struct csinn_tensor mat0,
struct csinn_tensor mat1,
struct csinn_tensor output,
struct csinn_matmul_params params 
)

Matmul initialization function.

Parameters
[in]mat0Pointer to the input0 tensor
[in]mat1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsMatmul parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_max_init()

int csinn_max_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_reduce_params params 
)

Max initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsMax parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_maximum_init()

int csinn_maximum_init ( struct csinn_tensor input0,
struct csinn_tensor input1,
struct csinn_tensor output,
struct csinn_diso_params params 
)

Maximum initialization function.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsMaximum parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_maxpool2d_init()

int csinn_maxpool2d_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_pool_params params 
)

Two-dimensional max pooling initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsPooling parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_maxpool2d_locat_init()

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.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsPooling parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_maxpool3d_init()

int csinn_maxpool3d_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_pool_params params 
)

Three-dimensional max pooling initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsPooling parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_mean_init()

int csinn_mean_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_reduce_params params 
)

Mean initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsMean parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_min_init()

int csinn_min_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_reduce_params params 
)

Min initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsMin parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_minimum_init()

int csinn_minimum_init ( struct csinn_tensor input0,
struct csinn_tensor input1,
struct csinn_tensor output,
struct csinn_diso_params params 
)

Minimum initialization function.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsMinimum parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_mod_init()

int csinn_mod_init ( struct csinn_tensor input0,
struct csinn_tensor input1,
struct csinn_tensor output,
struct csinn_diso_params params 
)

Mod initialization function.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsMod parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_mul_init()

int csinn_mul_init ( struct csinn_tensor input0,
struct csinn_tensor input1,
struct csinn_tensor output,
struct csinn_diso_params params 
)

Mul initialization function.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsMul parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_ndarray_size_init()

int csinn_ndarray_size_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_ndarray_size_params params 
)

Ndarray size initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsNdarray size parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_negative_init()

int csinn_negative_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

Negative initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsNegative parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_non_max_suppression_init()

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.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsNon-max suppression parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_not_init()

int csinn_not_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

NOT initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsNOT parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_not_equal_init()

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.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsNot equal parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_one_hot_init()

int csinn_one_hot_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_one_hot_params params 
)

One Hot initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsOne Hot parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_or_init()

int csinn_or_init ( struct csinn_tensor input0,
struct csinn_tensor input1,
struct csinn_tensor output,
struct csinn_diso_params params 
)

OR initialization function.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsOR parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_pad_init()

int csinn_pad_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_pad_params params 
)

Pad initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsPad parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_power_init()

int csinn_power_init ( struct csinn_tensor input0,
struct csinn_tensor input1,
struct csinn_tensor output,
struct csinn_diso_params params 
)

Power initialization function.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsPower parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_prelu_init()

int csinn_prelu_init ( struct csinn_tensor input,
struct csinn_tensor alpha,
struct csinn_tensor output,
struct csinn_prelu_params params 
)

PReLU initialization function.

Parameters
[in]inputPointer to the input tensor
[in]alphaPointer to the α coefficient tensor
[out]outputPointer to the output tensor
[in]paramsPReLU parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_prod_init()

int csinn_prod_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_reduce_params params 
)

Prod initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsProd parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_proposal_init()

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.

Parameters
[in]cls_probPointer to the classification input tensor
[in]bbox_predPointer to the box input tensor
[in]im_infoPointer to the image input tensor
[out]outputPointer to the output tensor
[in]paramsProposal parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_psroipooling_init()

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.

Parameters
[in]dataPointer to the input tensor
[in]roisROI information
[out]outputPointer to the output tensor
[in]paramsPS ROI pooling parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_reduce_logsumexp_init()

int csinn_reduce_logsumexp_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_reduce_params params 
)

Reduce LogSumExp initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsReduce LogSumExp parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_reduce_max_init()

int csinn_reduce_max_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_reduce_params params 
)

Reduce max initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsReduce max parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_reduce_mean_init()

int csinn_reduce_mean_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_reduce_params params 
)

Reduce mean initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsReduce mean parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_reduce_min_init()

int csinn_reduce_min_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_reduce_params params 
)

Reduce min initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsReduce min parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_reduce_prod_init()

int csinn_reduce_prod_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_reduce_params params 
)

Reduce prod initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsReduce prod parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_reduce_sum_init()

int csinn_reduce_sum_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_reduce_params params 
)

Reduce sum initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsReduce sum parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_relu_init()

int csinn_relu_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_relu_params params 
)

ReLU initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsReLU parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_relu1_init()

int csinn_relu1_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_relu_params params 
)

ReLU1 initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsReLU1 parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_relu6_init()

int csinn_relu6_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_relu_params params 
)

ReLU6 initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsReLU6 parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_relun_init()

int csinn_relun_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_relu_params params 
)

ReLUn initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsReLUn parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_reorg_init()

int csinn_reorg_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_reorg_params params 
)

Reorg initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsReorg parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_reshape_init()

int csinn_reshape_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_reshape_params params 
)

Reshape initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsReshape parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_resize_init()

int csinn_resize_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_resize_params params 
)

Resize initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsResize parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_reverse_init()

int csinn_reverse_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_reverse_params params 
)

Reverse initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsReverse parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_roi_align_init()

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.

Parameters
[in]dataPointer to the input tensor
[in]roisROI information
[out]outputPointer to the output tensor
[in]paramsROI align parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_roipool_init()

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.

Parameters
[in]dataPointer to the input tensor
[in]roisROI information
[out]outputPointer to the output tensor
[in]paramsROI pooling parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_round_init()

int csinn_round_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

Round initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsRound parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_rsqrt_init()

int csinn_rsqrt_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

Rsqrt initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsRsqrt parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_scatter_nd_init()

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.

Parameters
[in]inputPointer to the input tensor
[in]indicesPointer to the index tensor
[in]updatesPointer to the distribution of update tensor
[out]outputPointer to the output tensor
[in]paramsBroadcast to parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_segment_max_init()

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.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsSegment max parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_segment_mean_init()

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.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsSegment mean parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_segment_min_init()

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.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsSegment min parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_segment_prod_init()

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.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsSegment prod parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_segment_sum_init()

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.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsSegment sum parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_select_init()

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.

Parameters
[in]conditionPointer to the condition tensor
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsSelect parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_sequence_mask_init()

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.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsSequence mask parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_shape_init()

int csinn_shape_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_shape_params params 
)

Shape initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsShape parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_shuffle_channel_init()

int csinn_shuffle_channel_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_shuffle_channel_params params 
)

Shuffle channel initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsShuffle channel parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_sigmoid_init()

int csinn_sigmoid_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_sigmoid_params params 
)

Sigmoid initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsSigmoid parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_sign_init()

int csinn_sign_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

Sign initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsSign parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_sin_init()

int csinn_sin_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

sin initialization function

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramssin parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_sinh_init()

int csinn_sinh_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

sinh initialization function

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramssinh parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_slice_init()

int csinn_slice_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_slice_params params 
)

Slice initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsSlice parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_softmax_init()

int csinn_softmax_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_softmax_params params 
)

Softmax initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsSoftmax parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_softplus_init()

int csinn_softplus_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

Softplus initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsSoftplus parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_softrelu_init()

int csinn_softrelu_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_relu_params params 
)

Soft ReLU initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsSoft ReLU parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_softsign_init()

int csinn_softsign_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

Softsign initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsSoftsign parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_space_to_batch_init()

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.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsSpace to batch parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_space_to_batch_nd_init()

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.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsSpace to batch nd parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_space_to_depth_init()

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.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsSpace to depth parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_split_init()

int csinn_split_init ( struct csinn_tensor input,
struct csinn_tensor **  output,
struct csinn_split_params params 
)

Split initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsSplit parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_sqrt_init()

int csinn_sqrt_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

Sqrt initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsSqrt parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_square_init()

int csinn_square_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

Square initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsSquare parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_squeeze_init()

int csinn_squeeze_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_squeeze_params params 
)

Squeeze initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsSqueeze parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_stack_init()

int csinn_stack_init ( struct csinn_tensor **  inputs,
struct csinn_tensor output,
struct csinn_stack_params params 
)

Stack initialization function.

Parameters
[in]inputsPointer to the input tensors
[out]outputPointer to the output tensor
[in]paramsStack parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_strided_slice_init()

int csinn_strided_slice_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_strided_slice_params params 
)

Stride slice initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsStride slice parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_sub_init()

int csinn_sub_init ( struct csinn_tensor input0,
struct csinn_tensor input1,
struct csinn_tensor output,
struct csinn_diso_params params 
)

Sub initialization function.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsSub parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_sum_init()

int csinn_sum_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_reduce_params params 
)

Sum initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsSum parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_tan_init()

int csinn_tan_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

tan initialization function

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramstan parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_tanh_init()

int csinn_tanh_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

tanh initialization function

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramstanh parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_threshold_relu_init()

int csinn_threshold_relu_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_relu_params params 
)

Threshold ReLU initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsThreshold ReLU parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_tile_init()

int csinn_tile_init ( struct csinn_tensor inputs,
struct csinn_tensor output,
struct csinn_tile_params params 
)

Tile initialization function.

Parameters
[in]inputsPointer to the input tensors
[out]outputPointer to the output tensor
[in]paramsTile parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_topk_init()

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.

Parameters
[in]inputPointer to the input tensor
[out]output1Pointer to the output1 tensor
[out]output2Pointer to the output2 tensor
[in]paramsTOP-k parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_transpose_init()

int csinn_transpose_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_transpose_params params 
)

Transpose initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsTranspose parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_trunc_init()

int csinn_trunc_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

Trunc initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsTrunc parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_unpooling_init()

int csinn_unpooling_init ( struct csinn_tensor input,
struct csinn_tensor mask,
struct csinn_tensor output,
struct csinn_unpooling_params params 
)

Unpooling initialization function.

Parameters
[in]inputPointer to the input tensor
[in]maskLocating information
[out]outputPointer to the output tensor
[in]paramsUnpooling parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_unstack_init()

int csinn_unstack_init ( struct csinn_tensor input,
struct csinn_tensor **  output,
struct csinn_unstack_params params 
)

Unstack initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsUnstack parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_where_init()

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.

Parameters
[in]conditionPointer to the condition tensor
[in]xPointer to the x tensor
[in]yPointer to the y tensor
[out]outputPointer to the output tensor
[in]paramsWhere parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_where_softmax_init()

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.

Parameters
[in]conditionPointer to the condition tensor
[in]yPointer to the y tensor
[out]outputPointer to the output tensor
[in]paramsWhere parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_xor_init()

int csinn_xor_init ( struct csinn_tensor input0,
struct csinn_tensor input1,
struct csinn_tensor output,
struct csinn_diso_params params 
)

XOR initialization function.

Parameters
[in]input0Pointer to the input0 tensor
[in]input1Pointer to the input1 tensor
[out]outputPointer to the output tensor
[in]paramsXOR parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.

◆ csinn_yuv_rgb_scale_init()

int csinn_yuv_rgb_scale_init ( struct csinn_tensor input,
struct csinn_tensor output,
struct csinn_siso_params params 
)

YUV RGB scale initialization function.

Parameters
[in]inputPointer to the input tensor
[out]outputPointer to the output tensor
[in]paramsYUV RGB scale parameter descriptor
Returns
On success, the return value is 1. If an error occurred while executing the function, the return value is less than or equal to 0.