25#ifndef INCLUDE_CSI_INTERNAL_H_
26#define INCLUDE_CSI_INTERNAL_H_
145 CSINN_OP_BATCH_TO_SPACE,
146 CSINN_OP_BATCH_TO_SPACE_ND,
148 CSINN_OP_CACHE_MATMUL,
149 CSINN_OP_CACHE_CONV1D,
157 CSINN_OP_CONV2D_RELU,
158 CSINN_OP_CONV2D_RELU6,
159 CSINN_OP_CONV2D_CHANNEL,
160 CSINN_OP_CONV2D_CHANNEL_RELU,
161 CSINN_OP_CONV2D_CHANNEL_RELU6,
162 CSINN_OP_DEPTHWISE_CONV1D,
163 CSINN_OP_DEPTHWISE_CONV2D,
164 CSINN_OP_DEPTHWISE_CONV2D_RELU,
165 CSINN_OP_DEPTHWISE_CONV2D_RELU6,
166 CSINN_OP_DEPTHWISE_CONV2D_CHANNEL,
167 CSINN_OP_DEPTHWISE_CONV2D_CHANNEL_RELU,
168 CSINN_OP_DEPTHWISE_CONV2D_CHANNEL_RELU6,
169 CSINN_OP_GROUP_CONV1D,
170 CSINN_OP_GROUP_CONV2D,
171 CSINN_OP_GROUP_CONV2D_RELU,
172 CSINN_OP_GROUP_CONV2D_RELU6,
173 CSINN_OP_GROUP_CONV2D_CHANNEL,
174 CSINN_OP_GROUP_CONV2D_CHANNEL_RELU,
176 CSINN_OP_DATA_CONVERT,
183 CSINN_OP_DEPTHWISE_DECONV2D,
185 CSINN_OP_DEPTH_TO_SPACE,
191 CSINN_OP_EXPAND_DIMS,
194 CSINN_OP_FLOOR_DIVIDE,
198 CSINN_OP_FULLYCONNECTED,
201 CSINN_OP_GLOBAL_AVGPOOL2D,
202 CSINN_OP_GLOBAL_MAXPOOL2D,
203 CSINN_OP_GREATHER_EQUAL,
205 CSINN_OP_HARD_SIGMOID,
214 CSINN_OP_LOG_SOFTMAX,
217 CSINN_OP_LOGICAL_AND,
218 CSINN_OP_LOGICAL_NOT,
220 CSINN_OP_LOGICAL_XOR,
226 CSINN_OP_MAXPOOL2D_LOCAT,
229 CSINN_OP_MEAN_STRIDE,
235 CSINN_OP_NDARRAY_SIZE,
237 CSINN_OP_NON_MAX_SUPPRESSION,
247 CSINN_OP_PSROIPOOLING,
248 CSINN_OP_REDUCE_LOGSUMEXP,
250 CSINN_OP_REDUCE_MEAN,
252 CSINN_OP_REDUCE_PROD,
267 CSINN_OP_SEGMENT_MAX,
268 CSINN_OP_UNSORTED_SEGMENT_MAX,
269 CSINN_OP_SEGMENT_MEAN,
270 CSINN_OP_UNSORTED_SEGMENT_MEAN,
271 CSINN_OP_SEGMENT_MIN,
272 CSINN_OP_UNSORTED_SEGMENT_MIN,
273 CSINN_OP_SEGMENT_PROD,
274 CSINN_OP_UNSORTED_SEGMENT_PROD,
275 CSINN_OP_SEGMENT_SUM,
276 CSINN_OP_UNSORTED_SEGMENT_SUM,
278 CSINN_OP_SEQUENCE_MASK,
280 CSINN_OP_SHUFFLE_CHANNEL,
290 CSINN_OP_SPACE_TO_BATCH,
291 CSINN_OP_SPACE_TO_BATCH_ND,
292 CSINN_OP_SPACE_TO_DEPTH,
298 CSINN_OP_STRIDED_SLICE,
303 CSINN_OP_THRESHOLD_RELU,
311 CSINN_OP_WHERE_SOFTMAX,
313 CSINN_OP_YUV_RGB_SCALE,
320 CSINN_SUBGRAPH_RETURN,
321 CSINN_OP_AND_UTILS_SIZE,
324enum csinn_runtime_enum {
326 CSINN_SESSION_DEINIT,
331 CSINN_SET_INPUT_NUMBER,
332 CSINN_SET_OUTPUT_NUMBER,
333 CSINN_GET_INPUT_NUMBER,
334 CSINN_GET_OUTPUT_NUMBER,
341 CSINN_RUNTIME_OP_SIZE,
564 int32_t out_pad_height;
565 int32_t out_pad_width;
569 int32_t fuse_zp2bias;
590 int32_t out_pad_depth;
591 int32_t out_pad_height;
592 int32_t out_pad_width;
600 int32_t fuse_zp2bias;
1123struct csinn_layer_norm_params {
1131struct csinn_asr_buffer_t {
1132 size_t writer_index;
1133 size_t buffer_lenth;
1139struct csinn_cache_matmul_params {
1141 struct csinn_asr_buffer_t asr_buffer;
1142 int32_t *cache_shape;
1148struct csinn_cache_conv1d_params {
1150 struct csinn_asr_buffer_t asr_buffer;
1151 int32_t *cache_shape;
1154 int32_t stride_width;
1155 int32_t dilation_width;
csinn_rmode_enum
Definition: csinn_data_structure.h:111
csinn_lrn_enum
Definition: csinn_data_structure.h:372
csinn_api_enum
Definition: csinn_data_structure.h:88
csinn_pad_enum
Definition: csinn_data_structure.h:352
csinn_profiler_enum
Definition: csinn_data_structure.h:444
csinn_quant_enum
Definition: csinn_data_structure.h:67
csinn_debug_enum
Definition: csinn_data_structure.h:455
csinn_mem_type_enum
Definition: csinn_data_structure.h:57
csinn_optimize_method_enum
Definition: csinn_data_structure.h:434
csinn_mode_save_enum
Definition: csinn_data_structure.h:120
csinn_resize_enum
Definition: csinn_data_structure.h:359
csinn_conv_mode_enum
Definition: csinn_data_structure.h:345
csinn_status_enum
Definition: csinn_data_structure.h:422
csinn_op_enum
Definition: csinn_data_structure.h:127
csinn_dtype_enum
Definition: csinn_data_structure.h:39
csinn_depth2space_enum
Definition: csinn_data_structure.h:366
csinn_layout_enum
Definition: csinn_data_structure.h:378
@ CSINN_RM_CPU_GRAPH
Definition: csinn_data_structure.h:113
@ CSINN_RM_NPU_GRAPH
Definition: csinn_data_structure.h:114
@ CSINN_RM_CPU_BASE_HYBRID
Definition: csinn_data_structure.h:115
@ CSINN_RM_LAYER
Definition: csinn_data_structure.h:112
@ CSINN_LRN_ACROSS_CHANNELS
Definition: csinn_data_structure.h:373
@ CSINN_LRN_WITHIN_CHANNEL
Definition: csinn_data_structure.h:374
@ CSINN_RVM
Definition: csinn_data_structure.h:105
@ CSINN_E907
Definition: csinn_data_structure.h:106
@ CSINN_E804
Definition: csinn_data_structure.h:99
@ CSINN_REF
Definition: csinn_data_structure.h:89
@ CSINN_CH8601
Definition: csinn_data_structure.h:95
@ CSINN_TVMGEN
Definition: csinn_data_structure.h:102
@ CSINN_C920
Definition: csinn_data_structure.h:93
@ CSINN_ASP
Definition: csinn_data_structure.h:103
@ CSINN_I805
Definition: csinn_data_structure.h:98
@ CSINN_REF_I805
Definition: csinn_data_structure.h:100
@ CSINN_RVV
Definition: csinn_data_structure.h:104
@ CSINN_DP1K
Definition: csinn_data_structure.h:97
@ CSINN_C908
Definition: csinn_data_structure.h:101
@ CSINN_TH1520
Definition: csinn_data_structure.h:96
@ CSINN_C906
Definition: csinn_data_structure.h:92
@ CSINN_ANOLE
Definition: csinn_data_structure.h:94
@ CSINN_GREF
Definition: csinn_data_structure.h:90
@ CSINN_C860
Definition: csinn_data_structure.h:91
@ CSINN_PAD_CONSTANT
Definition: csinn_data_structure.h:353
@ CSINN_PAD_EDGE
Definition: csinn_data_structure.h:354
@ CSINN_PAD_REFLECT
Definition: csinn_data_structure.h:355
@ CSINN_PROFILER_LEVEL_DUMP
Definition: csinn_data_structure.h:448
@ CSINN_PROFILER_LEVEL_ALL
Definition: csinn_data_structure.h:450
@ CSINN_PROFILER_LEVEL_TIMER
Definition: csinn_data_structure.h:446
@ CSINN_PROFILER_LEVEL_UNSET
Definition: csinn_data_structure.h:445
@ CSINN_QUANT_UINT8_ASYM
Definition: csinn_data_structure.h:70
@ CSINN_QUANT_INT8_SYM
Definition: csinn_data_structure.h:73
@ CSINN_QUANT_BFLOAT16
Definition: csinn_data_structure.h:76
@ CSINN_QUANT_FLOAT16
Definition: csinn_data_structure.h:75
@ CSINN_QUANT_INT16_SYM
Definition: csinn_data_structure.h:74
@ CSINN_QUANT_UNSET
Definition: csinn_data_structure.h:68
@ CSINN_QUANT_INT8_ASYM_W_SYM
Definition: csinn_data_structure.h:79
@ CSINN_QUANT_FLOAT32
Definition: csinn_data_structure.h:77
@ CSINN_QUANT_INT8_ASYM
Definition: csinn_data_structure.h:72
@ CSINN_QUANT_INT4_ASYM_W_SYM
Definition: csinn_data_structure.h:78
@ CSINN_QUANT_INT4_SYM
Definition: csinn_data_structure.h:69
@ CSINN_QUANT_UINT8_SYM
Definition: csinn_data_structure.h:71
@ CSINN_QUANT_FLOAT16_W_INT8
Definition: csinn_data_structure.h:80
@ CSINN_DEBUG_LEVEL_FATAL
Definition: csinn_data_structure.h:460
@ CSINN_DEBUG_LEVEL_WARNING
Definition: csinn_data_structure.h:458
@ CSINN_DEBUG_LEVEL_INFO
Definition: csinn_data_structure.h:457
@ CSINN_DEBUG_LEVEL_ERROR
Definition: csinn_data_structure.h:459
@ CSINN_DEBUG_LEVEL_DEBUG
Definition: csinn_data_structure.h:456
@ CSINN_MEM_TYPE_CPU_ALIGNED
Definition: csinn_data_structure.h:59
@ CSINN_MEM_TYPE_CPU_ACC
Definition: csinn_data_structure.h:63
@ CSINN_MEM_TYPE_DMABUF
Definition: csinn_data_structure.h:60
@ CSINN_MEM_TYPE_CPU_NOT_ALIGNED
Definition: csinn_data_structure.h:58
@ CSINN_MEM_TYPE_ASP42
Definition: csinn_data_structure.h:61
@ CSINN_MEM_TYPE_ASP41
Definition: csinn_data_structure.h:62
@ CSINN_OPT_FORCE_REPLACE
Definition: csinn_data_structure.h:435
@ CSINN_OPT_C_REFERENCE
Definition: csinn_data_structure.h:439
@ CSINN_OPT_TVMGEN
Definition: csinn_data_structure.h:438
@ CSINN_OPT_ASM
Definition: csinn_data_structure.h:436
@ CSINN_OPT_UNSUPPORTED
Definition: csinn_data_structure.h:440
@ CSINN_OPT_INTRINSIC
Definition: csinn_data_structure.h:437
@ CSINN_RUN_ONLY
Definition: csinn_data_structure.h:123
@ CSINN_SAVE_ONLY
Definition: csinn_data_structure.h:122
@ CSINN_SAVE_AND_RUN
Definition: csinn_data_structure.h:121
@ CSINN_RESIZE_NEAREST_NEIGHBOR
Definition: csinn_data_structure.h:361
@ CSINN_RESIZE_BILINEAR
Definition: csinn_data_structure.h:360
@ CSINN_RESIZE_NEAREST_BICUBIC
Definition: csinn_data_structure.h:362
@ CSINN_DIRECT
Definition: csinn_data_structure.h:346
@ CSINN_WINOGRAD
Definition: csinn_data_structure.h:347
@ CSINN_GEMM
Definition: csinn_data_structure.h:348
@ CSINN_CALLBACK_UNSET
Definition: csinn_data_structure.h:427
@ CSINN_UNSUPPORT_LAYOUT
Definition: csinn_data_structure.h:423
@ CSINN_UNSUPPORT_DTYPE
Definition: csinn_data_structure.h:425
@ CSINN_FALSE
Definition: csinn_data_structure.h:429
@ CSINN_TRUE
Definition: csinn_data_structure.h:430
@ CSINN_DTYPE_UINT32
Definition: csinn_data_structure.h:46
@ CSINN_DTYPE_FLOAT16
Definition: csinn_data_structure.h:48
@ CSINN_DTYPE_UINT16
Definition: csinn_data_structure.h:44
@ CSINN_DTYPE_INT8
Definition: csinn_data_structure.h:43
@ CSINN_DTYPE_UINT8
Definition: csinn_data_structure.h:42
@ CSINN_DTYPE_INT32
Definition: csinn_data_structure.h:47
@ CSINN_DTYPE_BFLOAT16
Definition: csinn_data_structure.h:49
@ CSINN_DTYPE_INT16
Definition: csinn_data_structure.h:45
@ CSINN_DTYPE_FLOAT32
Definition: csinn_data_structure.h:50
@ CSINN_DTYPE_INT4
Definition: csinn_data_structure.h:41
@ CSINN_DTYPE_BOOL
Definition: csinn_data_structure.h:40
@ CSINN_DTYPE_INT64
Definition: csinn_data_structure.h:52
@ CSINN_DTYPE_FLOAT64
Definition: csinn_data_structure.h:51
@ CSINN_DEPTHTOSPACE_DCR
Definition: csinn_data_structure.h:367
@ CSINN_DEPTHTOSPACE_CRD
Definition: csinn_data_structure.h:368
@ CSINN_LAYOUT_NC
Definition: csinn_data_structure.h:383
@ CSINN_LAYOUT_O1HW
Definition: csinn_data_structure.h:395
@ CSINN_LAYOUT_O
Definition: csinn_data_structure.h:388
@ CSINN_LAYOUT_NC1WC0
Definition: csinn_data_structure.h:416
@ CSINN_LAYOUT_1HW16O16
Definition: csinn_data_structure.h:409
@ CSINN_LAYOUT_NC1DHWC0
Definition: csinn_data_structure.h:418
@ CSINN_LAYOUT_NWC
Definition: csinn_data_structure.h:399
@ CSINN_LAYOUT_NULL
Definition: csinn_data_structure.h:379
@ CSINN_LAYOUT_OHWI
Definition: csinn_data_structure.h:404
@ CSINN_LAYOUT_NC1HWC0
Definition: csinn_data_structure.h:417
@ CSINN_LAYOUT_NC1C0
Definition: csinn_data_structure.h:415
@ CSINN_LAYOUT_1HWO
Definition: csinn_data_structure.h:408
@ CSINN_LAYOUT_OIHW
Definition: csinn_data_structure.h:393
@ CSINN_LAYOUT_O32I32
Definition: csinn_data_structure.h:391
@ CSINN_LAYOUT_N
Definition: csinn_data_structure.h:382
@ CSINN_LAYOUT_NCHW
Definition: csinn_data_structure.h:385
@ CSINN_LAYOUT_OIW
Definition: csinn_data_structure.h:392
@ CSINN_LAYOUT_NCW
Definition: csinn_data_structure.h:384
@ CSINN_LAYOUT_O16HWI16
Definition: csinn_data_structure.h:405
@ CSINN_LAYOUT_O32HWI32
Definition: csinn_data_structure.h:406
@ CSINN_LAYOUT_NDHWC
Definition: csinn_data_structure.h:401
@ CSINN_LAYOUT_OI
Definition: csinn_data_structure.h:389
@ CSINN_LAYOUT_OIDHW
Definition: csinn_data_structure.h:394
@ CSINN_LAYOUT_1HW32O32
Definition: csinn_data_structure.h:410
@ CSINN_LAYOUT_ODHWI
Definition: csinn_data_structure.h:407
@ CSINN_LAYOUT_OWI
Definition: csinn_data_structure.h:403
@ CSINN_LAYOUT_O16I16
Definition: csinn_data_structure.h:390
@ CSINN_LAYOUT_NHWC
Definition: csinn_data_structure.h:400
@ CSINN_LAYOUT_NCDHW
Definition: csinn_data_structure.h:386
Definition: csinn_data_structure.h:893
int32_t step_shift
Definition: csinn_data_structure.h:903
struct csinn_params_base base
Definition: csinn_data_structure.h:894
float step
Definition: csinn_data_structure.h:901
float stop
Definition: csinn_data_structure.h:898
int32_t start_shift
Definition: csinn_data_structure.h:897
int32_t step_multiplier
Definition: csinn_data_structure.h:902
float start
Definition: csinn_data_structure.h:895
int32_t stop_multiplier
Definition: csinn_data_structure.h:899
int32_t start_multiplier
Definition: csinn_data_structure.h:896
int32_t stop_shift
Definition: csinn_data_structure.h:900
Definition: csinn_data_structure.h:969
int32_t * block_shape
Definition: csinn_data_structure.h:973
struct csinn_params_base base
Definition: csinn_data_structure.h:970
int32_t spatial_dim_cnt
Definition: csinn_data_structure.h:974
int32_t * crops
Definition: csinn_data_structure.h:971
Definition: csinn_data_structure.h:959
int32_t block_size
Definition: csinn_data_structure.h:965
struct csinn_params_base base
Definition: csinn_data_structure.h:960
int32_t crop_top
Definition: csinn_data_structure.h:961
int32_t crop_left
Definition: csinn_data_structure.h:963
int32_t crop_bottom
Definition: csinn_data_structure.h:962
int32_t crop_right
Definition: csinn_data_structure.h:964
Definition: csinn_data_structure.h:705
float epsilon
Definition: csinn_data_structure.h:707
int32_t epsilon_multiplier
Definition: csinn_data_structure.h:708
struct csinn_params_base base
Definition: csinn_data_structure.h:706
int32_t epsilon_shift
Definition: csinn_data_structure.h:710
Definition: csinn_data_structure.h:1074
int32_t shape_count
Definition: csinn_data_structure.h:1077
int32_t * shape
Definition: csinn_data_structure.h:1076
struct csinn_params_base base
Definition: csinn_data_structure.h:1075
Definition: csinn_data_structure.h:524
int(* est)()
Definition: csinn_data_structure.h:526
int(* caps)()
Definition: csinn_data_structure.h:528
int(* init)()
Definition: csinn_data_structure.h:525
int(* exec)()
Definition: csinn_data_structure.h:527
int(* perf)()
Definition: csinn_data_structure.h:529
Definition: csinn_data_structure.h:1117
struct csinn_params_base base
Definition: csinn_data_structure.h:1118
enum csinn_dtype_enum dtype
Definition: csinn_data_structure.h:1119
Definition: csinn_data_structure.h:1081
float min_value
Definition: csinn_data_structure.h:1083
float max_value
Definition: csinn_data_structure.h:1084
struct csinn_params_base base
Definition: csinn_data_structure.h:1082
Definition: csinn_data_structure.h:1024
int32_t pad_w
Definition: csinn_data_structure.h:1027
int32_t pad_h
Definition: csinn_data_structure.h:1026
struct csinn_params_base base
Definition: csinn_data_structure.h:1025
int32_t stride_h
Definition: csinn_data_structure.h:1028
int32_t stride_w
Definition: csinn_data_structure.h:1029
Definition: csinn_data_structure.h:780
struct csinn_params_base base
Definition: csinn_data_structure.h:781
int32_t axis
Definition: csinn_data_structure.h:783
int32_t inputs_count
Definition: csinn_data_structure.h:782
Definition: csinn_data_structure.h:1162
int32_t group
Definition: csinn_data_structure.h:1164
int32_t pad_left
Definition: csinn_data_structure.h:1167
struct csinn_params_base base
Definition: csinn_data_structure.h:1163
int32_t dilation_width
Definition: csinn_data_structure.h:1166
int32_t pad_right
Definition: csinn_data_structure.h:1168
int32_t stride_width
Definition: csinn_data_structure.h:1165
Definition: csinn_data_structure.h:553
int32_t pad_left
Definition: csinn_data_structure.h:559
int32_t group
Definition: csinn_data_structure.h:555
int32_t dilation_width
Definition: csinn_data_structure.h:563
struct csinn_params_base base
Definition: csinn_data_structure.h:554
int32_t pad_down
Definition: csinn_data_structure.h:560
int32_t pad_top
Definition: csinn_data_structure.h:558
int32_t dilation_height
Definition: csinn_data_structure.h:562
struct csinn_conv2d_params::@0 conv_extra
int32_t stride_width
Definition: csinn_data_structure.h:557
int32_t pad_right
Definition: csinn_data_structure.h:561
int32_t stride_height
Definition: csinn_data_structure.h:556
Definition: csinn_data_structure.h:575
int32_t dilation_height
Definition: csinn_data_structure.h:588
int32_t group
Definition: csinn_data_structure.h:577
int32_t stride_depth
Definition: csinn_data_structure.h:578
int32_t dilation_width
Definition: csinn_data_structure.h:589
struct csinn_params_base base
Definition: csinn_data_structure.h:576
int32_t pad_left
Definition: csinn_data_structure.h:582
int32_t pad_top
Definition: csinn_data_structure.h:581
int32_t stride_width
Definition: csinn_data_structure.h:580
int32_t pad_down
Definition: csinn_data_structure.h:583
int32_t pad_front
Definition: csinn_data_structure.h:585
int32_t dilation_depth
Definition: csinn_data_structure.h:587
int32_t stride_height
Definition: csinn_data_structure.h:579
int32_t pad_back
Definition: csinn_data_structure.h:586
int32_t pad_right
Definition: csinn_data_structure.h:584
Definition: csinn_data_structure.h:854
int32_t offset_num
Definition: csinn_data_structure.h:858
int32_t * offset
Definition: csinn_data_structure.h:857
int32_t axis
Definition: csinn_data_structure.h:856
struct csinn_params_base base
Definition: csinn_data_structure.h:855
Definition: csinn_data_structure.h:1067
int32_t axis
Definition: csinn_data_structure.h:1069
struct csinn_params_base base
Definition: csinn_data_structure.h:1068
bool exclusive
Definition: csinn_data_structure.h:1070
Definition: csinn_data_structure.h:1060
bool exclusive
Definition: csinn_data_structure.h:1063
int32_t axis
Definition: csinn_data_structure.h:1062
struct csinn_params_base base
Definition: csinn_data_structure.h:1061
Definition: csinn_data_structure.h:984
int32_t block_size
Definition: csinn_data_structure.h:987
struct csinn_params_base base
Definition: csinn_data_structure.h:985
enum csinn_depth2space_enum mode
Definition: csinn_data_structure.h:986
Definition: csinn_data_structure.h:753
struct csinn_params_base base
Definition: csinn_data_structure.h:754
Definition: csinn_data_structure.h:837
struct csinn_params_base base
Definition: csinn_data_structure.h:838
int32_t axis
Definition: csinn_data_structure.h:839
Definition: csinn_data_structure.h:596
int32_t units
Definition: csinn_data_structure.h:598
struct csinn_params_base base
Definition: csinn_data_structure.h:597
Definition: csinn_data_structure.h:849
struct csinn_params_base base
Definition: csinn_data_structure.h:850
Definition: csinn_data_structure.h:543
int32_t l_order
Definition: csinn_data_structure.h:545
int32_t r_order
Definition: csinn_data_structure.h:546
int32_t l_stride
Definition: csinn_data_structure.h:547
int32_t r_stride
Definition: csinn_data_structure.h:548
struct csinn_params_base base
Definition: csinn_data_structure.h:544
int32_t unavailable_frames
Definition: csinn_data_structure.h:549
Definition: csinn_data_structure.h:924
struct csinn_params_base base
Definition: csinn_data_structure.h:925
Definition: csinn_data_structure.h:919
struct csinn_params_base base
Definition: csinn_data_structure.h:920
int32_t axis
Definition: csinn_data_structure.h:921
Definition: csinn_data_structure.h:1011
int32_t stride_h
Definition: csinn_data_structure.h:1017
int32_t pad_right
Definition: csinn_data_structure.h:1016
struct csinn_params_base base
Definition: csinn_data_structure.h:1012
int32_t pad_top
Definition: csinn_data_structure.h:1013
int32_t kernel_w
Definition: csinn_data_structure.h:1020
int32_t kernel_h
Definition: csinn_data_structure.h:1019
int32_t pad_left
Definition: csinn_data_structure.h:1015
int32_t pad_down
Definition: csinn_data_structure.h:1014
int32_t stride_w
Definition: csinn_data_structure.h:1018
Definition: csinn_data_structure.h:715
int32_t * axis
Definition: csinn_data_structure.h:722
int32_t epsilon_shift
Definition: csinn_data_structure.h:720
float epsilon
Definition: csinn_data_structure.h:717
int32_t epsilon_multiplier
Definition: csinn_data_structure.h:718
struct csinn_params_base base
Definition: csinn_data_structure.h:716
int32_t n
Definition: csinn_data_structure.h:723
Definition: csinn_data_structure.h:727
int32_t beta_shift
Definition: csinn_data_structure.h:741
double alpha
Definition: csinn_data_structure.h:734
int32_t alpha_multiplier
Definition: csinn_data_structure.h:735
int32_t range
Definition: csinn_data_structure.h:729
double beta
Definition: csinn_data_structure.h:738
double bias
Definition: csinn_data_structure.h:730
struct csinn_params_base base
Definition: csinn_data_structure.h:728
int32_t alpha_shift
Definition: csinn_data_structure.h:737
int32_t bias_shift
Definition: csinn_data_structure.h:733
int32_t bias_multiplier
Definition: csinn_data_structure.h:731
int32_t beta_multiplier
Definition: csinn_data_structure.h:739
Definition: csinn_data_structure.h:746
bool trans_b
Definition: csinn_data_structure.h:749
struct csinn_params_base base
Definition: csinn_data_structure.h:747
bool trans_a
Definition: csinn_data_structure.h:748
Definition: csinn_data_structure.h:493
void * bm_addr
Definition: csinn_data_structure.h:495
int32_t save_mode
Definition: csinn_data_structure.h:497
size_t bm_size
Definition: csinn_data_structure.h:496
char * bm_path
Definition: csinn_data_structure.h:494
int32_t priority
Definition: csinn_data_structure.h:498
Definition: csinn_data_structure.h:936
struct csinn_params_base base
Definition: csinn_data_structure.h:937
Definition: csinn_data_structure.h:1109
float iou_threshold
Definition: csinn_data_structure.h:1112
int32_t max_output_size
Definition: csinn_data_structure.h:1111
struct csinn_params_base base
Definition: csinn_data_structure.h:1110
Definition: csinn_data_structure.h:991
float f_on_value
Definition: csinn_data_structure.h:993
int32_t on_value
Definition: csinn_data_structure.h:995
int32_t depth
Definition: csinn_data_structure.h:997
int32_t off_value
Definition: csinn_data_structure.h:996
float f_off_value
Definition: csinn_data_structure.h:994
int32_t axis
Definition: csinn_data_structure.h:998
struct csinn_params_base base
Definition: csinn_data_structure.h:992
Definition: csinn_data_structure.h:763
int32_t * pad_after
Definition: csinn_data_structure.h:766
enum csinn_pad_enum pad_mode
Definition: csinn_data_structure.h:769
int32_t pad_num
Definition: csinn_data_structure.h:767
struct csinn_params_base base
Definition: csinn_data_structure.h:764
int32_t * pad_before
Definition: csinn_data_structure.h:765
float pad_value
Definition: csinn_data_structure.h:768
Definition: csinn_data_structure.h:533
int32_t api
Definition: csinn_data_structure.h:537
enum csinn_quant_enum quant_type
Definition: csinn_data_structure.h:538
struct csinn_session * sess
Definition: csinn_data_structure.h:539
int32_t layout
Definition: csinn_data_structure.h:536
struct csinn_callback * cb
Definition: csinn_data_structure.h:534
char * name
Definition: csinn_data_structure.h:535
Definition: csinn_data_structure.h:605
int32_t ceil_mode
Definition: csinn_data_structure.h:620
bool count_include_pad
Definition: csinn_data_structure.h:622
int32_t pad_top
Definition: csinn_data_structure.h:614
int32_t pad_back
Definition: csinn_data_structure.h:619
int32_t filter_width
Definition: csinn_data_structure.h:609
int32_t pad_right
Definition: csinn_data_structure.h:617
int32_t filter_depth
Definition: csinn_data_structure.h:610
int32_t stride_height
Definition: csinn_data_structure.h:611
int32_t pad_front
Definition: csinn_data_structure.h:618
struct csinn_params_base base
Definition: csinn_data_structure.h:606
int32_t pad_down
Definition: csinn_data_structure.h:616
int32_t stride_width
Definition: csinn_data_structure.h:612
int32_t filter_height
Definition: csinn_data_structure.h:608
int32_t stride_depth
Definition: csinn_data_structure.h:613
int32_t pool_type
Definition: csinn_data_structure.h:607
int32_t pad_left
Definition: csinn_data_structure.h:615
Definition: csinn_data_structure.h:686
int32_t axis
Definition: csinn_data_structure.h:688
struct csinn_params_base base
Definition: csinn_data_structure.h:687
Definition: csinn_data_structure.h:787
int32_t * ratio_multipliers
Definition: csinn_data_structure.h:794
int32_t threshold_shift
Definition: csinn_data_structure.h:800
int rpn_post_nms_top_n
Definition: csinn_data_structure.h:802
int32_t threshold_multiplier
Definition: csinn_data_structure.h:799
int32_t ratios_num
Definition: csinn_data_structure.h:796
int32_t feature_stride
Definition: csinn_data_structure.h:797
int rpn_pre_nms_top_n
Definition: csinn_data_structure.h:801
bool iou_loss
Definition: csinn_data_structure.h:804
float * ratios
Definition: csinn_data_structure.h:793
int32_t * ratio_shifts
Definition: csinn_data_structure.h:795
int32_t * scale_shifts
Definition: csinn_data_structure.h:791
float threshold
Definition: csinn_data_structure.h:798
int32_t scales_num
Definition: csinn_data_structure.h:792
int rpn_min_size
Definition: csinn_data_structure.h:803
float * scales
Definition: csinn_data_structure.h:789
struct csinn_params_base base
Definition: csinn_data_structure.h:788
int32_t * scale_multipliers
Definition: csinn_data_structure.h:790
Definition: csinn_data_structure.h:808
struct csinn_params_base base
Definition: csinn_data_structure.h:809
int32_t spatial_scale_multiplier
Definition: csinn_data_structure.h:813
float spatial_scale
Definition: csinn_data_structure.h:812
int32_t output_dim
Definition: csinn_data_structure.h:810
int32_t spatial_scale_shift
Definition: csinn_data_structure.h:814
int32_t group_size
Definition: csinn_data_structure.h:811
Definition: csinn_data_structure.h:464
int32_t multiplier
Definition: csinn_data_structure.h:467
int32_t shift
Definition: csinn_data_structure.h:468
int32_t zero_point
Definition: csinn_data_structure.h:465
float min
Definition: csinn_data_structure.h:469
float max
Definition: csinn_data_structure.h:470
float scale
Definition: csinn_data_structure.h:466
Definition: csinn_data_structure.h:1033
int32_t * out_extents
Definition: csinn_data_structure.h:1036
int32_t n
Definition: csinn_data_structure.h:1037
int32_t * inner_extents
Definition: csinn_data_structure.h:1039
int32_t m
Definition: csinn_data_structure.h:1040
int32_t * inner_strides
Definition: csinn_data_structure.h:1038
int32_t * out_strides
Definition: csinn_data_structure.h:1035
struct csinn_params_base base
Definition: csinn_data_structure.h:1034
bool keepdims
Definition: csinn_data_structure.h:1043
int32_t * axis
Definition: csinn_data_structure.h:1041
int32_t axis_count
Definition: csinn_data_structure.h:1042
Definition: csinn_data_structure.h:676
int32_t n_multiplier
Definition: csinn_data_structure.h:679
float n
Definition: csinn_data_structure.h:678
int32_t n_shift
Definition: csinn_data_structure.h:681
struct csinn_params_base base
Definition: csinn_data_structure.h:677
Definition: csinn_data_structure.h:1047
struct csinn_params_base base
Definition: csinn_data_structure.h:1048
int32_t stride
Definition: csinn_data_structure.h:1049
Definition: csinn_data_structure.h:825
struct csinn_params_base base
Definition: csinn_data_structure.h:826
int32_t * shape
Definition: csinn_data_structure.h:827
int32_t shape_num
Definition: csinn_data_structure.h:828
Definition: csinn_data_structure.h:773
struct csinn_params_base base
Definition: csinn_data_structure.h:774
bool align_corners
Definition: csinn_data_structure.h:776
enum csinn_resize_enum resize_mode
Definition: csinn_data_structure.h:775
Definition: csinn_data_structure.h:843
int32_t axis
Definition: csinn_data_structure.h:845
struct csinn_params_base base
Definition: csinn_data_structure.h:844
Definition: csinn_data_structure.h:636
struct csinn_params_base base
Definition: csinn_data_structure.h:637
float spatial_scale
Definition: csinn_data_structure.h:640
int32_t pooled_size_h
Definition: csinn_data_structure.h:638
int32_t sample_ratio
Definition: csinn_data_structure.h:645
int32_t spatial_scale_shift
Definition: csinn_data_structure.h:643
int32_t spatial_scale_multiplier
Definition: csinn_data_structure.h:641
int32_t pooled_size_w
Definition: csinn_data_structure.h:639
Definition: csinn_data_structure.h:649
float spatial_scale
Definition: csinn_data_structure.h:653
int32_t spatial_scale_shift
Definition: csinn_data_structure.h:656
int32_t spatial_scale_multiplier
Definition: csinn_data_structure.h:654
int32_t pooled_size_w
Definition: csinn_data_structure.h:652
int32_t pooled_size_h
Definition: csinn_data_structure.h:651
struct csinn_params_base base
Definition: csinn_data_structure.h:650
Definition: csinn_data_structure.h:666
struct csinn_params_base base
Definition: csinn_data_structure.h:667
Definition: csinn_data_structure.h:1053
int32_t num_segments
Definition: csinn_data_structure.h:1055
struct csinn_params_base base
Definition: csinn_data_structure.h:1054
bool unsorted
Definition: csinn_data_structure.h:1056
Definition: csinn_data_structure.h:758
struct csinn_params_base base
Definition: csinn_data_structure.h:759
Definition: csinn_data_structure.h:1002
int32_t mask_value_shift
Definition: csinn_data_structure.h:1006
int32_t axis
Definition: csinn_data_structure.h:1007
float mask_value
Definition: csinn_data_structure.h:1004
struct csinn_params_base base
Definition: csinn_data_structure.h:1003
int32_t mask_value_multiplier
Definition: csinn_data_structure.h:1005
Definition: csinn_data_structure.h:502
int32_t base_dtype
Definition: csinn_data_structure.h:503
struct csinn_model model
Definition: csinn_data_structure.h:511
int32_t base_layout
Definition: csinn_data_structure.h:505
int32_t base_run_mode
Definition: csinn_data_structure.h:509
int32_t output_num
Definition: csinn_data_structure.h:515
int32_t input_num
Definition: csinn_data_structure.h:514
enum csinn_quant_enum base_quant_type
Definition: csinn_data_structure.h:510
int32_t base_api
Definition: csinn_data_structure.h:507
struct csinn_tensor ** input
Definition: csinn_data_structure.h:516
int32_t profiler_level
Definition: csinn_data_structure.h:513
void * td
Definition: csinn_data_structure.h:518
bool dynamic_shape
Definition: csinn_data_structure.h:520
struct csinn_tensor ** output
Definition: csinn_data_structure.h:517
int32_t debug_level
Definition: csinn_data_structure.h:512
Definition: csinn_data_structure.h:832
struct csinn_params_base base
Definition: csinn_data_structure.h:833
Definition: csinn_data_structure.h:1097
struct csinn_params_base base
Definition: csinn_data_structure.h:1098
int32_t group
Definition: csinn_data_structure.h:1099
Definition: csinn_data_structure.h:671
struct csinn_params_base base
Definition: csinn_data_structure.h:672
Definition: csinn_data_structure.h:661
struct csinn_params_base base
Definition: csinn_data_structure.h:662
Definition: csinn_data_structure.h:862
int32_t * begin
Definition: csinn_data_structure.h:864
struct csinn_params_base base
Definition: csinn_data_structure.h:863
int32_t slice_num
Definition: csinn_data_structure.h:867
int32_t * strides
Definition: csinn_data_structure.h:866
int32_t * end
Definition: csinn_data_structure.h:865
Definition: csinn_data_structure.h:692
struct csinn_params_base base
Definition: csinn_data_structure.h:693
int32_t axis
Definition: csinn_data_structure.h:694
Definition: csinn_data_structure.h:951
int32_t * paddings
Definition: csinn_data_structure.h:953
struct csinn_params_base base
Definition: csinn_data_structure.h:952
int32_t spatial_dim_cnt
Definition: csinn_data_structure.h:955
int32_t * block_shape
Definition: csinn_data_structure.h:954
Definition: csinn_data_structure.h:941
int32_t pad_bottom
Definition: csinn_data_structure.h:944
int32_t pad_left
Definition: csinn_data_structure.h:945
int32_t pad_top
Definition: csinn_data_structure.h:943
int32_t block_size
Definition: csinn_data_structure.h:947
int32_t pad_right
Definition: csinn_data_structure.h:946
struct csinn_params_base base
Definition: csinn_data_structure.h:942
Definition: csinn_data_structure.h:978
int32_t block_size
Definition: csinn_data_structure.h:980
struct csinn_params_base base
Definition: csinn_data_structure.h:979
Definition: csinn_data_structure.h:871
int32_t axis
Definition: csinn_data_structure.h:875
int32_t output_num
Definition: csinn_data_structure.h:874
int32_t * split_index
Definition: csinn_data_structure.h:873
struct csinn_params_base base
Definition: csinn_data_structure.h:872
Definition: csinn_data_structure.h:929
int32_t axis_num
Definition: csinn_data_structure.h:932
int32_t * axis
Definition: csinn_data_structure.h:931
struct csinn_params_base base
Definition: csinn_data_structure.h:930
Definition: csinn_data_structure.h:879
int32_t axis
Definition: csinn_data_structure.h:882
struct csinn_params_base base
Definition: csinn_data_structure.h:880
int32_t inputs_count
Definition: csinn_data_structure.h:881
Definition: csinn_data_structure.h:1088
struct csinn_params_base base
Definition: csinn_data_structure.h:1089
int32_t * stride
Definition: csinn_data_structure.h:1092
int32_t slice_count
Definition: csinn_data_structure.h:1093
int32_t * end
Definition: csinn_data_structure.h:1091
int32_t * begin
Definition: csinn_data_structure.h:1090
Definition: csinn_data_structure.h:475
uint32_t is_const
Definition: csinn_data_structure.h:482
int32_t dim[MAX_DIM]
Definition: csinn_data_structure.h:479
struct csinn_session * sess
Definition: csinn_data_structure.h:489
struct csinn_quant_info * qinfo
Definition: csinn_data_structure.h:488
void * data
Definition: csinn_data_structure.h:476
enum csinn_mem_type_enum mtype
Definition: csinn_data_structure.h:478
char * name
Definition: csinn_data_structure.h:483
enum csinn_dtype_enum dtype
Definition: csinn_data_structure.h:477
int32_t quant_channel
Definition: csinn_data_structure.h:485
int32_t layout
Definition: csinn_data_structure.h:484
int32_t dim_count
Definition: csinn_data_structure.h:480
Definition: csinn_data_structure.h:886
struct csinn_params_base base
Definition: csinn_data_structure.h:887
int32_t reps_num
Definition: csinn_data_structure.h:889
int32_t * reps
Definition: csinn_data_structure.h:888
Definition: csinn_data_structure.h:1103
int32_t k
Definition: csinn_data_structure.h:1105
struct csinn_params_base base
Definition: csinn_data_structure.h:1104
Definition: csinn_data_structure.h:818
int32_t permute_num
Definition: csinn_data_structure.h:821
int32_t * permute
Definition: csinn_data_structure.h:820
struct csinn_params_base base
Definition: csinn_data_structure.h:819
Definition: csinn_data_structure.h:627
int32_t pad_out_width
Definition: csinn_data_structure.h:632
int32_t scale_height
Definition: csinn_data_structure.h:629
struct csinn_params_base base
Definition: csinn_data_structure.h:628
int32_t pad_out_height
Definition: csinn_data_structure.h:631
int32_t scale_width
Definition: csinn_data_structure.h:630
Definition: csinn_data_structure.h:912
int32_t axis
Definition: csinn_data_structure.h:915
struct csinn_params_base base
Definition: csinn_data_structure.h:913
int32_t outputs_count
Definition: csinn_data_structure.h:914
Definition: csinn_data_structure.h:907
struct csinn_params_base base
Definition: csinn_data_structure.h:908
Definition: csinn_data_structure.h:698
float minus_inf
Definition: csinn_data_structure.h:701
struct csinn_params_base base
Definition: csinn_data_structure.h:699
int32_t axis
Definition: csinn_data_structure.h:700