SHL 2.2.x
Loading...
Searching...
No Matches
csinn_data_structure.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2016-2023 T-Head Semiconductor Co., Ltd. All rights reserved.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 *
6 * Licensed under the Apache License, Version 2.0 (the License); you may
7 * not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
14 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19/* SHL version 2.2.x */
20
25#ifndef INCLUDE_CSI_INTERNAL_H_
26#define INCLUDE_CSI_INTERNAL_H_
27
28#include <stdbool.h>
29#include <stddef.h>
30#include <stdint.h>
31
53 CSINN_DTYPE_SIZE,
54};
55
64};
65
81 CSINN_QUANT_SIZE,
82};
83
84/* alias of TH1520, for compatible */
85#define CSINN_LIGHT 7
86
107 CSINN_API_SIZE,
108};
109
116 CSINN_RUN_MODE_SIZE,
117};
118
124};
125
128 CSINN_OP_ABS = 0,
129 CSINN_OP_ACOS,
130 CSINN_OP_ACOSH,
131 CSINN_OP_ADD,
132 CSINN_OP_ALL,
133 CSINN_OP_AND,
134 CSINN_OP_ANY,
135 CSINN_OP_ARANGE,
136 CSINN_OP_ARGMAX,
137 CSINN_OP_ARGMIN,
138 CSINN_OP_ASIN,
139 CSINN_OP_ASINH,
140 CSINN_OP_ATAN,
141 CSINN_OP_ATANH,
142 CSINN_OP_AVGPOOL2D,
143 CSINN_OP_AVGPOOL3D,
144 CSINN_OP_BN,
145 CSINN_OP_BATCH_TO_SPACE,
146 CSINN_OP_BATCH_TO_SPACE_ND,
147 CSINN_OP_BROADCOST,
148 CSINN_OP_CACHE_MATMUL,
149 CSINN_OP_CACHE_CONV1D,
150 CSINN_OP_CAST,
151 CSINN_OP_CEIL,
152 CSINN_OP_CLIP,
153 CSINN_OP_COL2IM,
154 CSINN_OP_CONCAT,
155 CSINN_OP_CONV1D,
156 CSINN_OP_CONV2D,
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,
175 CSINN_OP_CONV3D,
176 CSINN_OP_DATA_CONVERT,
177 CSINN_OP_COS,
178 CSINN_OP_COSH,
179 CSINN_OP_CROP,
180 CSINN_OP_CUMPROD,
181 CSINN_OP_CUMSUM,
182 CSINN_OP_DECONV2D,
183 CSINN_OP_DEPTHWISE_DECONV2D,
184 CSINN_OP_DECONV3D,
185 CSINN_OP_DEPTH_TO_SPACE,
186 CSINN_OP_DIV,
187 CSINN_OP_ELU,
188 CSINN_OP_EQUANL,
189 CSINN_OP_ERF,
190 CSINN_OP_EXP,
191 CSINN_OP_EXPAND_DIMS,
192 CSINN_OP_EXPM1,
193 CSINN_OP_FLATTEN,
194 CSINN_OP_FLOOR_DIVIDE,
195 CSINN_OP_FLOOR_MOD,
196 CSINN_OP_FLOOR,
197 CSINN_OP_FSMN,
198 CSINN_OP_FULLYCONNECTED,
199 CSINN_OP_GATHER_ND,
200 CSINN_OP_GATHER,
201 CSINN_OP_GLOBAL_AVGPOOL2D,
202 CSINN_OP_GLOBAL_MAXPOOL2D,
203 CSINN_OP_GREATHER_EQUAL,
204 CSINN_OP_GREATHER,
205 CSINN_OP_HARD_SIGMOID,
206 CSINN_OP_IM2COL,
207 CSINN_OP_ISNAN,
208 CSINN_OP_L2N,
209 CSINN_OP_L2POOL2D,
210 CSINN_OP_LAYER_NORM,
211 CSINN_OP_LEAKY_RELU,
212 CSINN_OP_LESS_EQUAL,
213 CSINN_OP_LESS,
214 CSINN_OP_LOG_SOFTMAX,
215 CSINN_OP_LOG,
216 CSINN_OP_LOG1P,
217 CSINN_OP_LOGICAL_AND,
218 CSINN_OP_LOGICAL_NOT,
219 CSINN_OP_LOGICAL_OR,
220 CSINN_OP_LOGICAL_XOR,
221 CSINN_OP_LRN,
222 CSINN_OP_MATMUL,
223 CSINN_OP_MAX,
224 CSINN_OP_MAXIMUM,
225 CSINN_OP_MAXPOOL2D,
226 CSINN_OP_MAXPOOL2D_LOCAT,
227 CSINN_OP_MAXPOOL3D,
228 CSINN_OP_MEAN,
229 CSINN_OP_MEAN_STRIDE,
230 CSINN_OP_MIN,
231 CSINN_OP_MIN_STRIDE,
232 CSINN_OP_MINIMUM,
233 CSINN_OP_MOD,
234 CSINN_OP_MUL,
235 CSINN_OP_NDARRAY_SIZE,
236 CSINN_OP_NEGATIVE,
237 CSINN_OP_NON_MAX_SUPPRESSION,
238 CSINN_OP_NOT_EQUAL,
239 CSINN_OP_NOT,
240 CSINN_OP_ONE_HOT,
241 CSINN_OP_OR,
242 CSINN_OP_PAD,
243 CSINN_OP_POWER,
244 CSINN_OP_PRELU,
245 CSINN_OP_PROD,
246 CSINN_OP_PROPOSAL,
247 CSINN_OP_PSROIPOOLING,
248 CSINN_OP_REDUCE_LOGSUMEXP,
249 CSINN_OP_REDUCE_MAX,
250 CSINN_OP_REDUCE_MEAN,
251 CSINN_OP_REDUCE_MIN,
252 CSINN_OP_REDUCE_PROD,
253 CSINN_OP_REDUCE_SUM,
254 CSINN_OP_RELU,
255 CSINN_OP_RELU1,
256 CSINN_OP_RELU6,
257 CSINN_OP_RELUN,
258 CSINN_OP_REORG,
259 CSINN_OP_RESHAPE,
260 CSINN_OP_RESIZE,
261 CSINN_OP_REVERSE,
262 CSINN_OP_ROIALIGN,
263 CSINN_OP_ROIPOOL,
264 CSINN_OP_ROUND,
265 CSINN_OP_RSQRT,
266 CSINN_OP_SCATTER_ND,
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,
277 CSINN_OP_SELECT,
278 CSINN_OP_SEQUENCE_MASK,
279 CSINN_OP_SHAPE,
280 CSINN_OP_SHUFFLE_CHANNEL,
281 CSINN_OP_SIGMOID,
282 CSINN_OP_SIGN,
283 CSINN_OP_SIN,
284 CSINN_OP_SINH,
285 CSINN_OP_SLICE,
286 CSINN_OP_SOFTMAX,
287 CSINN_OP_SOFTPLUS,
288 CSINN_OP_SOFTRELU,
289 CSINN_OP_SOFTSIGN,
290 CSINN_OP_SPACE_TO_BATCH,
291 CSINN_OP_SPACE_TO_BATCH_ND,
292 CSINN_OP_SPACE_TO_DEPTH,
293 CSINN_OP_SPLIT,
294 CSINN_OP_SQRT,
295 CSINN_OP_SQUARE,
296 CSINN_OP_SQUEEZE,
297 CSINN_OP_STACK,
298 CSINN_OP_STRIDED_SLICE,
299 CSINN_OP_SUB,
300 CSINN_OP_SUM,
301 CSINN_OP_TAN,
302 CSINN_OP_TANH,
303 CSINN_OP_THRESHOLD_RELU,
304 CSINN_OP_TILE,
305 CSINN_OP_TOPK,
306 CSINN_OP_TRANSPOSE,
307 CSINN_OP_TRUNC,
308 CSINN_OP_UNPOOLING,
309 CSINN_OP_UNSTACK,
310 CSINN_OP_WHERE,
311 CSINN_OP_WHERE_SOFTMAX,
312 CSINN_OP_XOR,
313 CSINN_OP_YUV_RGB_SCALE,
314
315 CSINN_OP_SIZE,
316
317 /* graph */
318 CSINN_TENSOR,
319 CSINN_SUBGRAPH,
320 CSINN_SUBGRAPH_RETURN,
321 CSINN_OP_AND_UTILS_SIZE,
322};
323
324enum csinn_runtime_enum {
325 CSINN_SESSION_INIT,
326 CSINN_SESSION_DEINIT,
327 CSINN_SESSION_SETUP,
328 CSINN_SESSION_RUN,
329 CSINN_UPDATE_INPUT,
330 CSINN_UPDATE_OUTPUT,
331 CSINN_SET_INPUT_NUMBER,
332 CSINN_SET_OUTPUT_NUMBER,
333 CSINN_GET_INPUT_NUMBER,
334 CSINN_GET_OUTPUT_NUMBER,
335 CSINN_SET_INPUT,
336 CSINN_SET_OUTPUT,
337 CSINN_GET_INPUT,
338 CSINN_GET_OUTPUT,
339 CSINN_TENSOR_ENTRY,
340 CSINN_LOAD_BG,
341 CSINN_RUNTIME_OP_SIZE,
342};
343
349};
350
356};
357
363};
364
369};
370
375};
376
380 // NCHW
381 // ACTIVITION
387 // WEIGHT
397 // NHWC
398 // ACTIVITION
402 // WEIGHT
412 // NC1HWC0
413 // ACTIVITION
414 // RVV optimization format: c0=4/8/8 for fp32/fp16/int8 when vlen=128
419};
420
431};
432
441};
442
452};
453
461};
462
465 int32_t zero_point;
466 float scale;
467 int32_t multiplier;
468 int32_t shift;
469 float min;
470 float max;
471};
472
473#define MAX_DIM 8
476 void *data;
479 int32_t dim[MAX_DIM];
480 int32_t dim_count;
482 uint32_t is_const;
483 char *name;
484 int32_t layout;
490};
491
494 char *bm_path;
495 void *bm_addr;
496 size_t bm_size;
497 int32_t save_mode;
498 int32_t priority;
499};
500
503 int32_t base_dtype;
505 int32_t base_layout;
507 int32_t base_api;
512 int32_t debug_level;
514 int32_t input_num;
515 int32_t output_num;
518 void *td;
521};
522
525 int (*init)();
526 int (*est)();
527 int (*exec)();
528 int (*caps)();
529 int (*perf)();
530};
531
535 char *name;
536 int32_t layout;
537 int32_t api;
540};
541
545 int32_t l_order;
546 int32_t r_order;
547 int32_t l_stride;
548 int32_t r_stride;
550};
551
555 int32_t group;
557 int32_t stride_width;
558 int32_t pad_top;
559 int32_t pad_left;
560 int32_t pad_down;
561 int32_t pad_right;
564 int32_t out_pad_height;
565 int32_t out_pad_width;
566 struct {
567 struct csinn_tensor *kernel_tm;
568 enum csinn_conv_mode_enum conv_mode;
569 int32_t fuse_zp2bias;
570 } conv_extra;
572};
573
577 int32_t group;
578 int32_t stride_depth;
580 int32_t stride_width;
581 int32_t pad_top;
582 int32_t pad_left;
583 int32_t pad_down;
584 int32_t pad_right;
585 int32_t pad_front;
586 int32_t pad_back;
590 int32_t out_pad_depth;
591 int32_t out_pad_height;
592 int32_t out_pad_width;
593};
594
598 int32_t units;
599 struct {
600 int32_t fuse_zp2bias;
601 } fc_extra;
602};
603
607 int32_t pool_type;
609 int32_t filter_width;
610 int32_t filter_depth;
612 int32_t stride_width;
613 int32_t stride_depth;
614 int32_t pad_top;
615 int32_t pad_left;
616 int32_t pad_down;
617 int32_t pad_right;
618 int32_t pad_front;
619 int32_t pad_back;
620 int32_t ceil_mode;
624};
625
629 int32_t scale_height;
630 int32_t scale_width;
633};
634
645 int32_t sample_ratio;
646};
647
658};
659
663};
664
668};
669
673};
674
678 float n;
679 int32_t n_multiplier;
681 int32_t n_shift;
683};
684
688 int32_t axis;
689};
690
694 int32_t axis;
695};
696
700 int32_t axis;
701 float minus_inf;
702};
703
707 float epsilon;
712};
713
717 float epsilon;
722 int32_t *axis;
723 int32_t n;
724};
725
729 int32_t range;
730 double bias;
733 int32_t bias_shift;
734 double alpha;
737 int32_t alpha_shift;
738 double beta;
741 int32_t beta_shift;
742 enum csinn_lrn_enum norm_region;
743};
744
748 bool trans_a;
749 bool trans_b;
750};
751
755};
756
760};
761
765 int32_t *pad_before;
766 int32_t *pad_after;
767 int32_t pad_num;
768 float pad_value;
770};
771
777};
778
782 int32_t inputs_count;
783 int32_t axis;
784};
785
789 float *scales;
791 int32_t *scale_shifts;
792 int32_t scales_num;
793 float *ratios;
795 int32_t *ratio_shifts;
796 int32_t ratios_num;
798 float threshold;
804 bool iou_loss;
805};
806
810 int32_t output_dim;
811 int32_t group_size;
815};
816
820 int32_t *permute;
821 int32_t permute_num;
822};
823
827 int32_t *shape;
828 int32_t shape_num;
829};
830
834};
835
839 int32_t axis;
840};
841
845 int32_t axis;
846};
847
851};
852
856 int32_t axis;
857 int32_t *offset;
858 int32_t offset_num;
859};
860
864 int32_t *begin;
865 int32_t *end;
866 int32_t *strides;
867 int32_t slice_num;
868};
869
873 int32_t *split_index;
874 int32_t output_num;
875 int32_t axis;
876};
877
881 int32_t inputs_count;
882 int32_t axis;
883};
884
888 int32_t *reps;
889 int32_t reps_num;
890};
891
895 float start;
897 int32_t start_shift;
898 float stop;
900 int32_t stop_shift;
901 float step;
903 int32_t step_shift;
904};
905
909};
910
915 int32_t axis;
916};
917
921 int32_t axis;
922};
926};
927
931 int32_t *axis;
932 int32_t axis_num;
933};
934
938};
939
943 int32_t pad_top;
944 int32_t pad_bottom;
945 int32_t pad_left;
946 int32_t pad_right;
947 int32_t block_size;
948};
949
953 int32_t *paddings;
954 int32_t *block_shape;
956};
957
961 int32_t crop_top;
962 int32_t crop_bottom;
963 int32_t crop_left;
964 int32_t crop_right;
965 int32_t block_size;
966};
967
971 int32_t *crops;
973 int32_t *block_shape;
975};
976
980 int32_t block_size;
981};
982
987 int32_t block_size;
988};
989
995 int32_t on_value;
996 int32_t off_value;
997 int32_t depth;
998 int32_t axis;
999};
1000
1007 int32_t axis;
1008};
1009
1013 int32_t pad_top;
1014 int32_t pad_down;
1015 int32_t pad_left;
1016 int32_t pad_right;
1017 int32_t stride_h;
1018 int32_t stride_w;
1019 int32_t kernel_h;
1020 int32_t kernel_w;
1021};
1022
1026 int32_t pad_h;
1027 int32_t pad_w;
1028 int32_t stride_h;
1029 int32_t stride_w;
1030};
1031
1035 int32_t *out_strides;
1036 int32_t *out_extents;
1037 int32_t n;
1038 int32_t *inner_strides;
1039 int32_t *inner_extents;
1040 int32_t m;
1041 int32_t *axis;
1042 int32_t axis_count;
1044};
1045
1049 int32_t stride;
1050};
1051
1057};
1058
1062 int32_t axis;
1064};
1065
1069 int32_t axis;
1071};
1072
1076 int32_t *shape;
1077 int32_t shape_count;
1078};
1079
1085};
1086
1090 int32_t *begin;
1091 int32_t *end;
1092 int32_t *stride;
1093 int32_t slice_count;
1094};
1095
1099 int32_t group;
1100};
1101
1105 int32_t k;
1106};
1107
1113 // float score_threshold;
1114};
1115
1120};
1121
1122// modyfied to use asr model
1123struct csinn_layer_norm_params {
1124 struct csinn_params_base base;
1125 float epsilon;
1126 bool center;
1127 bool scale;
1128 int32_t axis;
1129};
1130
1131struct csinn_asr_buffer_t {
1132 size_t writer_index;
1133 size_t buffer_lenth; // lenth of buffer
1134 size_t data_lenth; // lenth of data
1135 uint8_t *buffer;
1136 uint8_t flag;
1137};
1138
1139struct csinn_cache_matmul_params {
1140 struct csinn_params_base base;
1141 struct csinn_asr_buffer_t asr_buffer;
1142 int32_t *cache_shape;
1143 int32_t *shape;
1144 int32_t *axes;
1145 void *data;
1146};
1147
1148struct csinn_cache_conv1d_params {
1149 struct csinn_params_base base;
1150 struct csinn_asr_buffer_t asr_buffer;
1151 int32_t *cache_shape;
1152 int32_t *in_shape;
1153 int32_t group;
1154 int32_t stride_width;
1155 int32_t dilation_width;
1156 int32_t pad_left;
1157 int32_t pad_right;
1158 void *data;
1159};
1160
1164 int32_t group;
1167 int32_t pad_left;
1168 int32_t pad_right;
1169};
1170
1175#endif // INCLUDE_CSI_INTERNAL_H_
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