|
@@ -0,0 +1,3803 @@
|
|
|
+/* auto generate by HHB_VERSION 2.0.21 */
|
|
|
+
|
|
|
+#include <shl_pnna.h>
|
|
|
+
|
|
|
+void *csinn_(char *params_base) {
|
|
|
+ struct csinn_session *sess = csinn_alloc_session();
|
|
|
+ sess->base_quant_type = CSINN_QUANT_UINT8_ASYM;
|
|
|
+ sess->model.priority = 0;
|
|
|
+ sess->base_api = CSINN_LIGHT;
|
|
|
+ sess->base_dtype = CSINN_DTYPE_UINT8;
|
|
|
+ csinn_session_init(sess);
|
|
|
+ csinn_set_input_number(1, sess);
|
|
|
+ csinn_set_output_number(2, sess);
|
|
|
+
|
|
|
+ struct csinn_tensor *data = csinn_alloc_tensor(sess);
|
|
|
+ data->name = "data@@multiply_1_0";
|
|
|
+ data->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ data->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ data->dim[0] = 1;
|
|
|
+ data->dim[1] = 3;
|
|
|
+ data->dim[2] = 300;
|
|
|
+ data->dim[3] = 300;
|
|
|
+ data->dim_count = 4;
|
|
|
+ data->qinfo = (struct csinn_quant_info *)(params_base + 0);
|
|
|
+ data->quant_channel = 1;
|
|
|
+ struct csinn_tensor *output_1 = csinn_alloc_tensor(sess);
|
|
|
+ output_1->name = "output_1";
|
|
|
+ output_1->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_1->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_1->dim[0] = 1;
|
|
|
+ output_1->dim[1] = 3;
|
|
|
+ output_1->dim[2] = 300;
|
|
|
+ output_1->dim[3] = 300;
|
|
|
+ output_1->dim_count = 4;
|
|
|
+ output_1->qinfo = (struct csinn_quant_info *)(params_base + 24);
|
|
|
+ output_1->quant_channel = 1;
|
|
|
+ struct csinn_tensor *rhs_1 = csinn_alloc_tensor(sess);
|
|
|
+ rhs_1->name = "rhs_1";
|
|
|
+ rhs_1->data = params_base + 72;
|
|
|
+ rhs_1->is_const = 1;
|
|
|
+ rhs_1->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ rhs_1->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ rhs_1->dim[0] = 1;
|
|
|
+ rhs_1->dim[1] = 1;
|
|
|
+ rhs_1->dim[2] = 1;
|
|
|
+ rhs_1->dim[3] = 1;
|
|
|
+ rhs_1->dim_count = 4;
|
|
|
+ rhs_1->qinfo = (struct csinn_quant_info *)(params_base + 48);
|
|
|
+ rhs_1->quant_channel = 1;
|
|
|
+ struct csinn_diso_params *params_1 = csinn_alloc_params(sizeof(struct csinn_diso_params), sess);
|
|
|
+ params_1->base.name = "multiply_1";
|
|
|
+ csinn_mul_init(data, rhs_1, output_1, params_1);
|
|
|
+ struct csinn_tensor *output_4 = csinn_alloc_tensor(sess);
|
|
|
+ output_4->name = "output_4";
|
|
|
+ output_4->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_4->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_4->dim[0] = 1;
|
|
|
+ output_4->dim[1] = 3;
|
|
|
+ output_4->dim[2] = 300;
|
|
|
+ output_4->dim[3] = 300;
|
|
|
+ output_4->dim_count = 4;
|
|
|
+ output_4->qinfo = (struct csinn_quant_info *)(params_base + 73);
|
|
|
+ output_4->quant_channel = 1;
|
|
|
+ struct csinn_tensor *rhs_4 = csinn_alloc_tensor(sess);
|
|
|
+ rhs_4->name = "rhs_4";
|
|
|
+ rhs_4->data = params_base + 121;
|
|
|
+ rhs_4->is_const = 1;
|
|
|
+ rhs_4->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ rhs_4->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ rhs_4->dim[0] = 1;
|
|
|
+ rhs_4->dim[1] = 3;
|
|
|
+ rhs_4->dim[2] = 1;
|
|
|
+ rhs_4->dim[3] = 1;
|
|
|
+ rhs_4->dim_count = 4;
|
|
|
+ rhs_4->qinfo = (struct csinn_quant_info *)(params_base + 97);
|
|
|
+ rhs_4->quant_channel = 1;
|
|
|
+ struct csinn_diso_params *params_4 = csinn_alloc_params(sizeof(struct csinn_diso_params), sess);
|
|
|
+ params_4->base.name = "add_2";
|
|
|
+ csinn_add_init(output_1, rhs_4, output_4, params_4);
|
|
|
+ struct csinn_tensor *output_6 = csinn_alloc_tensor(sess);
|
|
|
+ output_6->name = "output_6";
|
|
|
+ output_6->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_6->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_6->dim[0] = 1;
|
|
|
+ output_6->dim[1] = 32;
|
|
|
+ output_6->dim[2] = 150;
|
|
|
+ output_6->dim[3] = 150;
|
|
|
+ output_6->dim_count = 4;
|
|
|
+ output_6->qinfo = (struct csinn_quant_info *)(params_base + 124);
|
|
|
+ output_6->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_6 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_6->name = "kernel_6";
|
|
|
+ kernel_6->data = params_base + 172;
|
|
|
+ kernel_6->is_const = 1;
|
|
|
+ kernel_6->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_6->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_6->dim[0] = 32;
|
|
|
+ kernel_6->dim[1] = 3;
|
|
|
+ kernel_6->dim[2] = 3;
|
|
|
+ kernel_6->dim[3] = 3;
|
|
|
+ kernel_6->dim_count = 4;
|
|
|
+ kernel_6->qinfo = (struct csinn_quant_info *)(params_base + 148);
|
|
|
+ kernel_6->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_6 = csinn_alloc_tensor(sess);
|
|
|
+ bias_6->name = "bias_6";
|
|
|
+ bias_6->data = params_base + 1060;
|
|
|
+ bias_6->is_const = 1;
|
|
|
+ bias_6->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_6->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_6->dim[0] = 32;
|
|
|
+ bias_6->dim_count = 1;
|
|
|
+ bias_6->qinfo = (struct csinn_quant_info *)(params_base + 1036);
|
|
|
+ bias_6->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_6 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_6->group = 1;
|
|
|
+ params_6->stride_height = 2;
|
|
|
+ params_6->stride_width = 2;
|
|
|
+ params_6->dilation_height = 1;
|
|
|
+ params_6->dilation_width = 1;
|
|
|
+ params_6->conv_extra.kernel_tm = NULL;
|
|
|
+ params_6->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_6->pad_top = 1;
|
|
|
+ params_6->pad_left = 1;
|
|
|
+ params_6->pad_down = 1;
|
|
|
+ params_6->pad_right = 1;
|
|
|
+ params_6->base.name = "conv2d_3_fuse_multiply_4_fuse_add_5";
|
|
|
+ csinn_conv2d_init(output_4, output_6, kernel_6, bias_6, params_6);
|
|
|
+ struct csinn_tensor *output_7 = csinn_alloc_tensor(sess);
|
|
|
+ output_7->name = "output_7";
|
|
|
+ output_7->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_7->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_7->dim[0] = 1;
|
|
|
+ output_7->dim[1] = 32;
|
|
|
+ output_7->dim[2] = 150;
|
|
|
+ output_7->dim[3] = 150;
|
|
|
+ output_7->dim_count = 4;
|
|
|
+ output_7->qinfo = (struct csinn_quant_info *)(params_base + 1188);
|
|
|
+ output_7->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_7 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_7->base.name = "relu_6";
|
|
|
+ csinn_relu_init(output_6, output_7, params_7);
|
|
|
+ struct csinn_tensor *output_8 = csinn_alloc_tensor(sess);
|
|
|
+ output_8->name = "output_8";
|
|
|
+ output_8->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_8->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_8->dim[0] = 1;
|
|
|
+ output_8->dim[1] = 32;
|
|
|
+ output_8->dim[2] = 150;
|
|
|
+ output_8->dim[3] = 150;
|
|
|
+ output_8->dim_count = 4;
|
|
|
+ output_8->qinfo = (struct csinn_quant_info *)(params_base + 1212);
|
|
|
+ output_8->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_8 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_8->name = "kernel_8";
|
|
|
+ kernel_8->data = params_base + 1260;
|
|
|
+ kernel_8->is_const = 1;
|
|
|
+ kernel_8->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_8->layout = CSINN_LAYOUT_O1HW;
|
|
|
+ kernel_8->dim[0] = 32;
|
|
|
+ kernel_8->dim[1] = 1;
|
|
|
+ kernel_8->dim[2] = 3;
|
|
|
+ kernel_8->dim[3] = 3;
|
|
|
+ kernel_8->dim_count = 4;
|
|
|
+ kernel_8->qinfo = (struct csinn_quant_info *)(params_base + 1236);
|
|
|
+ kernel_8->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_8 = csinn_alloc_tensor(sess);
|
|
|
+ bias_8->name = "bias_8";
|
|
|
+ bias_8->data = params_base + 1572;
|
|
|
+ bias_8->is_const = 1;
|
|
|
+ bias_8->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_8->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_8->dim[0] = 32;
|
|
|
+ bias_8->dim_count = 1;
|
|
|
+ bias_8->qinfo = (struct csinn_quant_info *)(params_base + 1548);
|
|
|
+ bias_8->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_8 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_8->group = 32;
|
|
|
+ params_8->stride_height = 1;
|
|
|
+ params_8->stride_width = 1;
|
|
|
+ params_8->dilation_height = 1;
|
|
|
+ params_8->dilation_width = 1;
|
|
|
+ params_8->conv_extra.kernel_tm = NULL;
|
|
|
+ params_8->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_8->pad_top = 1;
|
|
|
+ params_8->pad_left = 1;
|
|
|
+ params_8->pad_down = 1;
|
|
|
+ params_8->pad_right = 1;
|
|
|
+ params_8->base.name = "conv2d_7_fuse_multiply_8_fuse_add_9";
|
|
|
+ csinn_conv2d_init(output_7, output_8, kernel_8, bias_8, params_8);
|
|
|
+ struct csinn_tensor *output_9 = csinn_alloc_tensor(sess);
|
|
|
+ output_9->name = "output_9";
|
|
|
+ output_9->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_9->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_9->dim[0] = 1;
|
|
|
+ output_9->dim[1] = 32;
|
|
|
+ output_9->dim[2] = 150;
|
|
|
+ output_9->dim[3] = 150;
|
|
|
+ output_9->dim_count = 4;
|
|
|
+ output_9->qinfo = (struct csinn_quant_info *)(params_base + 1700);
|
|
|
+ output_9->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_9 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_9->base.name = "relu_10";
|
|
|
+ csinn_relu_init(output_8, output_9, params_9);
|
|
|
+ struct csinn_tensor *output_10 = csinn_alloc_tensor(sess);
|
|
|
+ output_10->name = "output_10";
|
|
|
+ output_10->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_10->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_10->dim[0] = 1;
|
|
|
+ output_10->dim[1] = 64;
|
|
|
+ output_10->dim[2] = 150;
|
|
|
+ output_10->dim[3] = 150;
|
|
|
+ output_10->dim_count = 4;
|
|
|
+ output_10->qinfo = (struct csinn_quant_info *)(params_base + 1724);
|
|
|
+ output_10->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_10 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_10->name = "kernel_10";
|
|
|
+ kernel_10->data = params_base + 1772;
|
|
|
+ kernel_10->is_const = 1;
|
|
|
+ kernel_10->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_10->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_10->dim[0] = 64;
|
|
|
+ kernel_10->dim[1] = 32;
|
|
|
+ kernel_10->dim[2] = 1;
|
|
|
+ kernel_10->dim[3] = 1;
|
|
|
+ kernel_10->dim_count = 4;
|
|
|
+ kernel_10->qinfo = (struct csinn_quant_info *)(params_base + 1748);
|
|
|
+ kernel_10->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_10 = csinn_alloc_tensor(sess);
|
|
|
+ bias_10->name = "bias_10";
|
|
|
+ bias_10->data = params_base + 3844;
|
|
|
+ bias_10->is_const = 1;
|
|
|
+ bias_10->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_10->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_10->dim[0] = 64;
|
|
|
+ bias_10->dim_count = 1;
|
|
|
+ bias_10->qinfo = (struct csinn_quant_info *)(params_base + 3820);
|
|
|
+ bias_10->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_10 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_10->group = 1;
|
|
|
+ params_10->stride_height = 1;
|
|
|
+ params_10->stride_width = 1;
|
|
|
+ params_10->dilation_height = 1;
|
|
|
+ params_10->dilation_width = 1;
|
|
|
+ params_10->conv_extra.kernel_tm = NULL;
|
|
|
+ params_10->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_10->pad_top = 0;
|
|
|
+ params_10->pad_left = 0;
|
|
|
+ params_10->pad_down = 0;
|
|
|
+ params_10->pad_right = 0;
|
|
|
+ params_10->base.name = "conv2d_11_fuse_multiply_12_fuse_add_13";
|
|
|
+ csinn_conv2d_init(output_9, output_10, kernel_10, bias_10, params_10);
|
|
|
+ struct csinn_tensor *output_11 = csinn_alloc_tensor(sess);
|
|
|
+ output_11->name = "output_11";
|
|
|
+ output_11->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_11->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_11->dim[0] = 1;
|
|
|
+ output_11->dim[1] = 64;
|
|
|
+ output_11->dim[2] = 150;
|
|
|
+ output_11->dim[3] = 150;
|
|
|
+ output_11->dim_count = 4;
|
|
|
+ output_11->qinfo = (struct csinn_quant_info *)(params_base + 4100);
|
|
|
+ output_11->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_11 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_11->base.name = "relu_14";
|
|
|
+ csinn_relu_init(output_10, output_11, params_11);
|
|
|
+ struct csinn_tensor *output_12 = csinn_alloc_tensor(sess);
|
|
|
+ output_12->name = "output_12";
|
|
|
+ output_12->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_12->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_12->dim[0] = 1;
|
|
|
+ output_12->dim[1] = 64;
|
|
|
+ output_12->dim[2] = 75;
|
|
|
+ output_12->dim[3] = 75;
|
|
|
+ output_12->dim_count = 4;
|
|
|
+ output_12->qinfo = (struct csinn_quant_info *)(params_base + 4124);
|
|
|
+ output_12->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_12 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_12->name = "kernel_12";
|
|
|
+ kernel_12->data = params_base + 4172;
|
|
|
+ kernel_12->is_const = 1;
|
|
|
+ kernel_12->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_12->layout = CSINN_LAYOUT_O1HW;
|
|
|
+ kernel_12->dim[0] = 64;
|
|
|
+ kernel_12->dim[1] = 1;
|
|
|
+ kernel_12->dim[2] = 3;
|
|
|
+ kernel_12->dim[3] = 3;
|
|
|
+ kernel_12->dim_count = 4;
|
|
|
+ kernel_12->qinfo = (struct csinn_quant_info *)(params_base + 4148);
|
|
|
+ kernel_12->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_12 = csinn_alloc_tensor(sess);
|
|
|
+ bias_12->name = "bias_12";
|
|
|
+ bias_12->data = params_base + 4772;
|
|
|
+ bias_12->is_const = 1;
|
|
|
+ bias_12->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_12->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_12->dim[0] = 64;
|
|
|
+ bias_12->dim_count = 1;
|
|
|
+ bias_12->qinfo = (struct csinn_quant_info *)(params_base + 4748);
|
|
|
+ bias_12->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_12 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_12->group = 64;
|
|
|
+ params_12->stride_height = 2;
|
|
|
+ params_12->stride_width = 2;
|
|
|
+ params_12->dilation_height = 1;
|
|
|
+ params_12->dilation_width = 1;
|
|
|
+ params_12->conv_extra.kernel_tm = NULL;
|
|
|
+ params_12->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_12->pad_top = 1;
|
|
|
+ params_12->pad_left = 1;
|
|
|
+ params_12->pad_down = 1;
|
|
|
+ params_12->pad_right = 1;
|
|
|
+ params_12->base.name = "conv2d_15_fuse_multiply_16_fuse_add_17";
|
|
|
+ csinn_conv2d_init(output_11, output_12, kernel_12, bias_12, params_12);
|
|
|
+ struct csinn_tensor *output_13 = csinn_alloc_tensor(sess);
|
|
|
+ output_13->name = "output_13";
|
|
|
+ output_13->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_13->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_13->dim[0] = 1;
|
|
|
+ output_13->dim[1] = 64;
|
|
|
+ output_13->dim[2] = 75;
|
|
|
+ output_13->dim[3] = 75;
|
|
|
+ output_13->dim_count = 4;
|
|
|
+ output_13->qinfo = (struct csinn_quant_info *)(params_base + 5028);
|
|
|
+ output_13->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_13 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_13->base.name = "relu_18";
|
|
|
+ csinn_relu_init(output_12, output_13, params_13);
|
|
|
+ struct csinn_tensor *output_14 = csinn_alloc_tensor(sess);
|
|
|
+ output_14->name = "output_14";
|
|
|
+ output_14->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_14->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_14->dim[0] = 1;
|
|
|
+ output_14->dim[1] = 128;
|
|
|
+ output_14->dim[2] = 75;
|
|
|
+ output_14->dim[3] = 75;
|
|
|
+ output_14->dim_count = 4;
|
|
|
+ output_14->qinfo = (struct csinn_quant_info *)(params_base + 5052);
|
|
|
+ output_14->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_14 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_14->name = "kernel_14";
|
|
|
+ kernel_14->data = params_base + 5100;
|
|
|
+ kernel_14->is_const = 1;
|
|
|
+ kernel_14->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_14->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_14->dim[0] = 128;
|
|
|
+ kernel_14->dim[1] = 64;
|
|
|
+ kernel_14->dim[2] = 1;
|
|
|
+ kernel_14->dim[3] = 1;
|
|
|
+ kernel_14->dim_count = 4;
|
|
|
+ kernel_14->qinfo = (struct csinn_quant_info *)(params_base + 5076);
|
|
|
+ kernel_14->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_14 = csinn_alloc_tensor(sess);
|
|
|
+ bias_14->name = "bias_14";
|
|
|
+ bias_14->data = params_base + 13316;
|
|
|
+ bias_14->is_const = 1;
|
|
|
+ bias_14->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_14->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_14->dim[0] = 128;
|
|
|
+ bias_14->dim_count = 1;
|
|
|
+ bias_14->qinfo = (struct csinn_quant_info *)(params_base + 13292);
|
|
|
+ bias_14->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_14 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_14->group = 1;
|
|
|
+ params_14->stride_height = 1;
|
|
|
+ params_14->stride_width = 1;
|
|
|
+ params_14->dilation_height = 1;
|
|
|
+ params_14->dilation_width = 1;
|
|
|
+ params_14->conv_extra.kernel_tm = NULL;
|
|
|
+ params_14->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_14->pad_top = 0;
|
|
|
+ params_14->pad_left = 0;
|
|
|
+ params_14->pad_down = 0;
|
|
|
+ params_14->pad_right = 0;
|
|
|
+ params_14->base.name = "conv2d_19_fuse_multiply_20_fuse_add_21";
|
|
|
+ csinn_conv2d_init(output_13, output_14, kernel_14, bias_14, params_14);
|
|
|
+ struct csinn_tensor *output_15 = csinn_alloc_tensor(sess);
|
|
|
+ output_15->name = "output_15";
|
|
|
+ output_15->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_15->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_15->dim[0] = 1;
|
|
|
+ output_15->dim[1] = 128;
|
|
|
+ output_15->dim[2] = 75;
|
|
|
+ output_15->dim[3] = 75;
|
|
|
+ output_15->dim_count = 4;
|
|
|
+ output_15->qinfo = (struct csinn_quant_info *)(params_base + 13828);
|
|
|
+ output_15->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_15 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_15->base.name = "relu_22";
|
|
|
+ csinn_relu_init(output_14, output_15, params_15);
|
|
|
+ struct csinn_tensor *output_16 = csinn_alloc_tensor(sess);
|
|
|
+ output_16->name = "output_16";
|
|
|
+ output_16->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_16->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_16->dim[0] = 1;
|
|
|
+ output_16->dim[1] = 128;
|
|
|
+ output_16->dim[2] = 75;
|
|
|
+ output_16->dim[3] = 75;
|
|
|
+ output_16->dim_count = 4;
|
|
|
+ output_16->qinfo = (struct csinn_quant_info *)(params_base + 13852);
|
|
|
+ output_16->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_16 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_16->name = "kernel_16";
|
|
|
+ kernel_16->data = params_base + 13900;
|
|
|
+ kernel_16->is_const = 1;
|
|
|
+ kernel_16->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_16->layout = CSINN_LAYOUT_O1HW;
|
|
|
+ kernel_16->dim[0] = 128;
|
|
|
+ kernel_16->dim[1] = 1;
|
|
|
+ kernel_16->dim[2] = 3;
|
|
|
+ kernel_16->dim[3] = 3;
|
|
|
+ kernel_16->dim_count = 4;
|
|
|
+ kernel_16->qinfo = (struct csinn_quant_info *)(params_base + 13876);
|
|
|
+ kernel_16->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_16 = csinn_alloc_tensor(sess);
|
|
|
+ bias_16->name = "bias_16";
|
|
|
+ bias_16->data = params_base + 15076;
|
|
|
+ bias_16->is_const = 1;
|
|
|
+ bias_16->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_16->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_16->dim[0] = 128;
|
|
|
+ bias_16->dim_count = 1;
|
|
|
+ bias_16->qinfo = (struct csinn_quant_info *)(params_base + 15052);
|
|
|
+ bias_16->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_16 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_16->group = 128;
|
|
|
+ params_16->stride_height = 1;
|
|
|
+ params_16->stride_width = 1;
|
|
|
+ params_16->dilation_height = 1;
|
|
|
+ params_16->dilation_width = 1;
|
|
|
+ params_16->conv_extra.kernel_tm = NULL;
|
|
|
+ params_16->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_16->pad_top = 1;
|
|
|
+ params_16->pad_left = 1;
|
|
|
+ params_16->pad_down = 1;
|
|
|
+ params_16->pad_right = 1;
|
|
|
+ params_16->base.name = "conv2d_23_fuse_multiply_24_fuse_add_25";
|
|
|
+ csinn_conv2d_init(output_15, output_16, kernel_16, bias_16, params_16);
|
|
|
+ struct csinn_tensor *output_17 = csinn_alloc_tensor(sess);
|
|
|
+ output_17->name = "output_17";
|
|
|
+ output_17->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_17->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_17->dim[0] = 1;
|
|
|
+ output_17->dim[1] = 128;
|
|
|
+ output_17->dim[2] = 75;
|
|
|
+ output_17->dim[3] = 75;
|
|
|
+ output_17->dim_count = 4;
|
|
|
+ output_17->qinfo = (struct csinn_quant_info *)(params_base + 15588);
|
|
|
+ output_17->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_17 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_17->base.name = "relu_26";
|
|
|
+ csinn_relu_init(output_16, output_17, params_17);
|
|
|
+ struct csinn_tensor *output_18 = csinn_alloc_tensor(sess);
|
|
|
+ output_18->name = "output_18";
|
|
|
+ output_18->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_18->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_18->dim[0] = 1;
|
|
|
+ output_18->dim[1] = 128;
|
|
|
+ output_18->dim[2] = 75;
|
|
|
+ output_18->dim[3] = 75;
|
|
|
+ output_18->dim_count = 4;
|
|
|
+ output_18->qinfo = (struct csinn_quant_info *)(params_base + 15612);
|
|
|
+ output_18->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_18 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_18->name = "kernel_18";
|
|
|
+ kernel_18->data = params_base + 15660;
|
|
|
+ kernel_18->is_const = 1;
|
|
|
+ kernel_18->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_18->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_18->dim[0] = 128;
|
|
|
+ kernel_18->dim[1] = 128;
|
|
|
+ kernel_18->dim[2] = 1;
|
|
|
+ kernel_18->dim[3] = 1;
|
|
|
+ kernel_18->dim_count = 4;
|
|
|
+ kernel_18->qinfo = (struct csinn_quant_info *)(params_base + 15636);
|
|
|
+ kernel_18->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_18 = csinn_alloc_tensor(sess);
|
|
|
+ bias_18->name = "bias_18";
|
|
|
+ bias_18->data = params_base + 32068;
|
|
|
+ bias_18->is_const = 1;
|
|
|
+ bias_18->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_18->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_18->dim[0] = 128;
|
|
|
+ bias_18->dim_count = 1;
|
|
|
+ bias_18->qinfo = (struct csinn_quant_info *)(params_base + 32044);
|
|
|
+ bias_18->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_18 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_18->group = 1;
|
|
|
+ params_18->stride_height = 1;
|
|
|
+ params_18->stride_width = 1;
|
|
|
+ params_18->dilation_height = 1;
|
|
|
+ params_18->dilation_width = 1;
|
|
|
+ params_18->conv_extra.kernel_tm = NULL;
|
|
|
+ params_18->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_18->pad_top = 0;
|
|
|
+ params_18->pad_left = 0;
|
|
|
+ params_18->pad_down = 0;
|
|
|
+ params_18->pad_right = 0;
|
|
|
+ params_18->base.name = "conv2d_27_fuse_multiply_28_fuse_add_29";
|
|
|
+ csinn_conv2d_init(output_17, output_18, kernel_18, bias_18, params_18);
|
|
|
+ struct csinn_tensor *output_19 = csinn_alloc_tensor(sess);
|
|
|
+ output_19->name = "output_19";
|
|
|
+ output_19->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_19->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_19->dim[0] = 1;
|
|
|
+ output_19->dim[1] = 128;
|
|
|
+ output_19->dim[2] = 75;
|
|
|
+ output_19->dim[3] = 75;
|
|
|
+ output_19->dim_count = 4;
|
|
|
+ output_19->qinfo = (struct csinn_quant_info *)(params_base + 32580);
|
|
|
+ output_19->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_19 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_19->base.name = "relu_30";
|
|
|
+ csinn_relu_init(output_18, output_19, params_19);
|
|
|
+ struct csinn_tensor *output_20 = csinn_alloc_tensor(sess);
|
|
|
+ output_20->name = "output_20";
|
|
|
+ output_20->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_20->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_20->dim[0] = 1;
|
|
|
+ output_20->dim[1] = 128;
|
|
|
+ output_20->dim[2] = 38;
|
|
|
+ output_20->dim[3] = 38;
|
|
|
+ output_20->dim_count = 4;
|
|
|
+ output_20->qinfo = (struct csinn_quant_info *)(params_base + 32604);
|
|
|
+ output_20->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_20 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_20->name = "kernel_20";
|
|
|
+ kernel_20->data = params_base + 32652;
|
|
|
+ kernel_20->is_const = 1;
|
|
|
+ kernel_20->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_20->layout = CSINN_LAYOUT_O1HW;
|
|
|
+ kernel_20->dim[0] = 128;
|
|
|
+ kernel_20->dim[1] = 1;
|
|
|
+ kernel_20->dim[2] = 3;
|
|
|
+ kernel_20->dim[3] = 3;
|
|
|
+ kernel_20->dim_count = 4;
|
|
|
+ kernel_20->qinfo = (struct csinn_quant_info *)(params_base + 32628);
|
|
|
+ kernel_20->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_20 = csinn_alloc_tensor(sess);
|
|
|
+ bias_20->name = "bias_20";
|
|
|
+ bias_20->data = params_base + 33828;
|
|
|
+ bias_20->is_const = 1;
|
|
|
+ bias_20->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_20->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_20->dim[0] = 128;
|
|
|
+ bias_20->dim_count = 1;
|
|
|
+ bias_20->qinfo = (struct csinn_quant_info *)(params_base + 33804);
|
|
|
+ bias_20->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_20 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_20->group = 128;
|
|
|
+ params_20->stride_height = 2;
|
|
|
+ params_20->stride_width = 2;
|
|
|
+ params_20->dilation_height = 1;
|
|
|
+ params_20->dilation_width = 1;
|
|
|
+ params_20->conv_extra.kernel_tm = NULL;
|
|
|
+ params_20->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_20->pad_top = 1;
|
|
|
+ params_20->pad_left = 1;
|
|
|
+ params_20->pad_down = 1;
|
|
|
+ params_20->pad_right = 1;
|
|
|
+ params_20->base.name = "conv2d_31_fuse_multiply_32_fuse_add_33";
|
|
|
+ csinn_conv2d_init(output_19, output_20, kernel_20, bias_20, params_20);
|
|
|
+ struct csinn_tensor *output_21 = csinn_alloc_tensor(sess);
|
|
|
+ output_21->name = "output_21";
|
|
|
+ output_21->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_21->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_21->dim[0] = 1;
|
|
|
+ output_21->dim[1] = 128;
|
|
|
+ output_21->dim[2] = 38;
|
|
|
+ output_21->dim[3] = 38;
|
|
|
+ output_21->dim_count = 4;
|
|
|
+ output_21->qinfo = (struct csinn_quant_info *)(params_base + 34340);
|
|
|
+ output_21->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_21 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_21->base.name = "relu_34";
|
|
|
+ csinn_relu_init(output_20, output_21, params_21);
|
|
|
+ struct csinn_tensor *output_22 = csinn_alloc_tensor(sess);
|
|
|
+ output_22->name = "output_22";
|
|
|
+ output_22->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_22->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_22->dim[0] = 1;
|
|
|
+ output_22->dim[1] = 256;
|
|
|
+ output_22->dim[2] = 38;
|
|
|
+ output_22->dim[3] = 38;
|
|
|
+ output_22->dim_count = 4;
|
|
|
+ output_22->qinfo = (struct csinn_quant_info *)(params_base + 34364);
|
|
|
+ output_22->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_22 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_22->name = "kernel_22";
|
|
|
+ kernel_22->data = params_base + 34412;
|
|
|
+ kernel_22->is_const = 1;
|
|
|
+ kernel_22->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_22->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_22->dim[0] = 256;
|
|
|
+ kernel_22->dim[1] = 128;
|
|
|
+ kernel_22->dim[2] = 1;
|
|
|
+ kernel_22->dim[3] = 1;
|
|
|
+ kernel_22->dim_count = 4;
|
|
|
+ kernel_22->qinfo = (struct csinn_quant_info *)(params_base + 34388);
|
|
|
+ kernel_22->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_22 = csinn_alloc_tensor(sess);
|
|
|
+ bias_22->name = "bias_22";
|
|
|
+ bias_22->data = params_base + 67204;
|
|
|
+ bias_22->is_const = 1;
|
|
|
+ bias_22->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_22->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_22->dim[0] = 256;
|
|
|
+ bias_22->dim_count = 1;
|
|
|
+ bias_22->qinfo = (struct csinn_quant_info *)(params_base + 67180);
|
|
|
+ bias_22->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_22 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_22->group = 1;
|
|
|
+ params_22->stride_height = 1;
|
|
|
+ params_22->stride_width = 1;
|
|
|
+ params_22->dilation_height = 1;
|
|
|
+ params_22->dilation_width = 1;
|
|
|
+ params_22->conv_extra.kernel_tm = NULL;
|
|
|
+ params_22->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_22->pad_top = 0;
|
|
|
+ params_22->pad_left = 0;
|
|
|
+ params_22->pad_down = 0;
|
|
|
+ params_22->pad_right = 0;
|
|
|
+ params_22->base.name = "conv2d_35_fuse_multiply_36_fuse_add_37";
|
|
|
+ csinn_conv2d_init(output_21, output_22, kernel_22, bias_22, params_22);
|
|
|
+ struct csinn_tensor *output_23 = csinn_alloc_tensor(sess);
|
|
|
+ output_23->name = "output_23";
|
|
|
+ output_23->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_23->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_23->dim[0] = 1;
|
|
|
+ output_23->dim[1] = 256;
|
|
|
+ output_23->dim[2] = 38;
|
|
|
+ output_23->dim[3] = 38;
|
|
|
+ output_23->dim_count = 4;
|
|
|
+ output_23->qinfo = (struct csinn_quant_info *)(params_base + 68228);
|
|
|
+ output_23->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_23 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_23->base.name = "relu_38";
|
|
|
+ csinn_relu_init(output_22, output_23, params_23);
|
|
|
+ struct csinn_tensor *output_24 = csinn_alloc_tensor(sess);
|
|
|
+ output_24->name = "output_24";
|
|
|
+ output_24->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_24->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_24->dim[0] = 1;
|
|
|
+ output_24->dim[1] = 256;
|
|
|
+ output_24->dim[2] = 38;
|
|
|
+ output_24->dim[3] = 38;
|
|
|
+ output_24->dim_count = 4;
|
|
|
+ output_24->qinfo = (struct csinn_quant_info *)(params_base + 68252);
|
|
|
+ output_24->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_24 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_24->name = "kernel_24";
|
|
|
+ kernel_24->data = params_base + 68300;
|
|
|
+ kernel_24->is_const = 1;
|
|
|
+ kernel_24->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_24->layout = CSINN_LAYOUT_O1HW;
|
|
|
+ kernel_24->dim[0] = 256;
|
|
|
+ kernel_24->dim[1] = 1;
|
|
|
+ kernel_24->dim[2] = 3;
|
|
|
+ kernel_24->dim[3] = 3;
|
|
|
+ kernel_24->dim_count = 4;
|
|
|
+ kernel_24->qinfo = (struct csinn_quant_info *)(params_base + 68276);
|
|
|
+ kernel_24->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_24 = csinn_alloc_tensor(sess);
|
|
|
+ bias_24->name = "bias_24";
|
|
|
+ bias_24->data = params_base + 70628;
|
|
|
+ bias_24->is_const = 1;
|
|
|
+ bias_24->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_24->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_24->dim[0] = 256;
|
|
|
+ bias_24->dim_count = 1;
|
|
|
+ bias_24->qinfo = (struct csinn_quant_info *)(params_base + 70604);
|
|
|
+ bias_24->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_24 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_24->group = 256;
|
|
|
+ params_24->stride_height = 1;
|
|
|
+ params_24->stride_width = 1;
|
|
|
+ params_24->dilation_height = 1;
|
|
|
+ params_24->dilation_width = 1;
|
|
|
+ params_24->conv_extra.kernel_tm = NULL;
|
|
|
+ params_24->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_24->pad_top = 1;
|
|
|
+ params_24->pad_left = 1;
|
|
|
+ params_24->pad_down = 1;
|
|
|
+ params_24->pad_right = 1;
|
|
|
+ params_24->base.name = "conv2d_39_fuse_multiply_40_fuse_add_41";
|
|
|
+ csinn_conv2d_init(output_23, output_24, kernel_24, bias_24, params_24);
|
|
|
+ struct csinn_tensor *output_25 = csinn_alloc_tensor(sess);
|
|
|
+ output_25->name = "output_25";
|
|
|
+ output_25->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_25->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_25->dim[0] = 1;
|
|
|
+ output_25->dim[1] = 256;
|
|
|
+ output_25->dim[2] = 38;
|
|
|
+ output_25->dim[3] = 38;
|
|
|
+ output_25->dim_count = 4;
|
|
|
+ output_25->qinfo = (struct csinn_quant_info *)(params_base + 71652);
|
|
|
+ output_25->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_25 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_25->base.name = "relu_42";
|
|
|
+ csinn_relu_init(output_24, output_25, params_25);
|
|
|
+ struct csinn_tensor *output_26 = csinn_alloc_tensor(sess);
|
|
|
+ output_26->name = "output_26";
|
|
|
+ output_26->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_26->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_26->dim[0] = 1;
|
|
|
+ output_26->dim[1] = 256;
|
|
|
+ output_26->dim[2] = 38;
|
|
|
+ output_26->dim[3] = 38;
|
|
|
+ output_26->dim_count = 4;
|
|
|
+ output_26->qinfo = (struct csinn_quant_info *)(params_base + 71676);
|
|
|
+ output_26->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_26 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_26->name = "kernel_26";
|
|
|
+ kernel_26->data = params_base + 71724;
|
|
|
+ kernel_26->is_const = 1;
|
|
|
+ kernel_26->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_26->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_26->dim[0] = 256;
|
|
|
+ kernel_26->dim[1] = 256;
|
|
|
+ kernel_26->dim[2] = 1;
|
|
|
+ kernel_26->dim[3] = 1;
|
|
|
+ kernel_26->dim_count = 4;
|
|
|
+ kernel_26->qinfo = (struct csinn_quant_info *)(params_base + 71700);
|
|
|
+ kernel_26->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_26 = csinn_alloc_tensor(sess);
|
|
|
+ bias_26->name = "bias_26";
|
|
|
+ bias_26->data = params_base + 137284;
|
|
|
+ bias_26->is_const = 1;
|
|
|
+ bias_26->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_26->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_26->dim[0] = 256;
|
|
|
+ bias_26->dim_count = 1;
|
|
|
+ bias_26->qinfo = (struct csinn_quant_info *)(params_base + 137260);
|
|
|
+ bias_26->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_26 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_26->group = 1;
|
|
|
+ params_26->stride_height = 1;
|
|
|
+ params_26->stride_width = 1;
|
|
|
+ params_26->dilation_height = 1;
|
|
|
+ params_26->dilation_width = 1;
|
|
|
+ params_26->conv_extra.kernel_tm = NULL;
|
|
|
+ params_26->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_26->pad_top = 0;
|
|
|
+ params_26->pad_left = 0;
|
|
|
+ params_26->pad_down = 0;
|
|
|
+ params_26->pad_right = 0;
|
|
|
+ params_26->base.name = "conv2d_43_fuse_multiply_44_fuse_add_45";
|
|
|
+ csinn_conv2d_init(output_25, output_26, kernel_26, bias_26, params_26);
|
|
|
+ struct csinn_tensor *output_27 = csinn_alloc_tensor(sess);
|
|
|
+ output_27->name = "output_27";
|
|
|
+ output_27->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_27->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_27->dim[0] = 1;
|
|
|
+ output_27->dim[1] = 256;
|
|
|
+ output_27->dim[2] = 38;
|
|
|
+ output_27->dim[3] = 38;
|
|
|
+ output_27->dim_count = 4;
|
|
|
+ output_27->qinfo = (struct csinn_quant_info *)(params_base + 138308);
|
|
|
+ output_27->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_27 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_27->base.name = "relu_46";
|
|
|
+ csinn_relu_init(output_26, output_27, params_27);
|
|
|
+ struct csinn_tensor *output_28 = csinn_alloc_tensor(sess);
|
|
|
+ output_28->name = "output_28";
|
|
|
+ output_28->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_28->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_28->dim[0] = 1;
|
|
|
+ output_28->dim[1] = 256;
|
|
|
+ output_28->dim[2] = 19;
|
|
|
+ output_28->dim[3] = 19;
|
|
|
+ output_28->dim_count = 4;
|
|
|
+ output_28->qinfo = (struct csinn_quant_info *)(params_base + 138332);
|
|
|
+ output_28->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_28 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_28->name = "kernel_28";
|
|
|
+ kernel_28->data = params_base + 138380;
|
|
|
+ kernel_28->is_const = 1;
|
|
|
+ kernel_28->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_28->layout = CSINN_LAYOUT_O1HW;
|
|
|
+ kernel_28->dim[0] = 256;
|
|
|
+ kernel_28->dim[1] = 1;
|
|
|
+ kernel_28->dim[2] = 3;
|
|
|
+ kernel_28->dim[3] = 3;
|
|
|
+ kernel_28->dim_count = 4;
|
|
|
+ kernel_28->qinfo = (struct csinn_quant_info *)(params_base + 138356);
|
|
|
+ kernel_28->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_28 = csinn_alloc_tensor(sess);
|
|
|
+ bias_28->name = "bias_28";
|
|
|
+ bias_28->data = params_base + 140708;
|
|
|
+ bias_28->is_const = 1;
|
|
|
+ bias_28->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_28->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_28->dim[0] = 256;
|
|
|
+ bias_28->dim_count = 1;
|
|
|
+ bias_28->qinfo = (struct csinn_quant_info *)(params_base + 140684);
|
|
|
+ bias_28->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_28 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_28->group = 256;
|
|
|
+ params_28->stride_height = 2;
|
|
|
+ params_28->stride_width = 2;
|
|
|
+ params_28->dilation_height = 1;
|
|
|
+ params_28->dilation_width = 1;
|
|
|
+ params_28->conv_extra.kernel_tm = NULL;
|
|
|
+ params_28->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_28->pad_top = 1;
|
|
|
+ params_28->pad_left = 1;
|
|
|
+ params_28->pad_down = 1;
|
|
|
+ params_28->pad_right = 1;
|
|
|
+ params_28->base.name = "conv2d_47_fuse_multiply_48_fuse_add_49";
|
|
|
+ csinn_conv2d_init(output_27, output_28, kernel_28, bias_28, params_28);
|
|
|
+ struct csinn_tensor *output_29 = csinn_alloc_tensor(sess);
|
|
|
+ output_29->name = "output_29";
|
|
|
+ output_29->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_29->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_29->dim[0] = 1;
|
|
|
+ output_29->dim[1] = 256;
|
|
|
+ output_29->dim[2] = 19;
|
|
|
+ output_29->dim[3] = 19;
|
|
|
+ output_29->dim_count = 4;
|
|
|
+ output_29->qinfo = (struct csinn_quant_info *)(params_base + 141732);
|
|
|
+ output_29->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_29 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_29->base.name = "relu_50";
|
|
|
+ csinn_relu_init(output_28, output_29, params_29);
|
|
|
+ struct csinn_tensor *output_30 = csinn_alloc_tensor(sess);
|
|
|
+ output_30->name = "output_30";
|
|
|
+ output_30->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_30->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_30->dim[0] = 1;
|
|
|
+ output_30->dim[1] = 512;
|
|
|
+ output_30->dim[2] = 19;
|
|
|
+ output_30->dim[3] = 19;
|
|
|
+ output_30->dim_count = 4;
|
|
|
+ output_30->qinfo = (struct csinn_quant_info *)(params_base + 141756);
|
|
|
+ output_30->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_30 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_30->name = "kernel_30";
|
|
|
+ kernel_30->data = params_base + 141804;
|
|
|
+ kernel_30->is_const = 1;
|
|
|
+ kernel_30->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_30->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_30->dim[0] = 512;
|
|
|
+ kernel_30->dim[1] = 256;
|
|
|
+ kernel_30->dim[2] = 1;
|
|
|
+ kernel_30->dim[3] = 1;
|
|
|
+ kernel_30->dim_count = 4;
|
|
|
+ kernel_30->qinfo = (struct csinn_quant_info *)(params_base + 141780);
|
|
|
+ kernel_30->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_30 = csinn_alloc_tensor(sess);
|
|
|
+ bias_30->name = "bias_30";
|
|
|
+ bias_30->data = params_base + 272900;
|
|
|
+ bias_30->is_const = 1;
|
|
|
+ bias_30->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_30->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_30->dim[0] = 512;
|
|
|
+ bias_30->dim_count = 1;
|
|
|
+ bias_30->qinfo = (struct csinn_quant_info *)(params_base + 272876);
|
|
|
+ bias_30->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_30 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_30->group = 1;
|
|
|
+ params_30->stride_height = 1;
|
|
|
+ params_30->stride_width = 1;
|
|
|
+ params_30->dilation_height = 1;
|
|
|
+ params_30->dilation_width = 1;
|
|
|
+ params_30->conv_extra.kernel_tm = NULL;
|
|
|
+ params_30->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_30->pad_top = 0;
|
|
|
+ params_30->pad_left = 0;
|
|
|
+ params_30->pad_down = 0;
|
|
|
+ params_30->pad_right = 0;
|
|
|
+ params_30->base.name = "conv2d_51_fuse_multiply_52_fuse_add_53";
|
|
|
+ csinn_conv2d_init(output_29, output_30, kernel_30, bias_30, params_30);
|
|
|
+ struct csinn_tensor *output_31 = csinn_alloc_tensor(sess);
|
|
|
+ output_31->name = "output_31";
|
|
|
+ output_31->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_31->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_31->dim[0] = 1;
|
|
|
+ output_31->dim[1] = 512;
|
|
|
+ output_31->dim[2] = 19;
|
|
|
+ output_31->dim[3] = 19;
|
|
|
+ output_31->dim_count = 4;
|
|
|
+ output_31->qinfo = (struct csinn_quant_info *)(params_base + 274948);
|
|
|
+ output_31->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_31 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_31->base.name = "relu_54";
|
|
|
+ csinn_relu_init(output_30, output_31, params_31);
|
|
|
+ struct csinn_tensor *output_32 = csinn_alloc_tensor(sess);
|
|
|
+ output_32->name = "output_32";
|
|
|
+ output_32->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_32->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_32->dim[0] = 1;
|
|
|
+ output_32->dim[1] = 512;
|
|
|
+ output_32->dim[2] = 19;
|
|
|
+ output_32->dim[3] = 19;
|
|
|
+ output_32->dim_count = 4;
|
|
|
+ output_32->qinfo = (struct csinn_quant_info *)(params_base + 274972);
|
|
|
+ output_32->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_32 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_32->name = "kernel_32";
|
|
|
+ kernel_32->data = params_base + 275020;
|
|
|
+ kernel_32->is_const = 1;
|
|
|
+ kernel_32->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_32->layout = CSINN_LAYOUT_O1HW;
|
|
|
+ kernel_32->dim[0] = 512;
|
|
|
+ kernel_32->dim[1] = 1;
|
|
|
+ kernel_32->dim[2] = 3;
|
|
|
+ kernel_32->dim[3] = 3;
|
|
|
+ kernel_32->dim_count = 4;
|
|
|
+ kernel_32->qinfo = (struct csinn_quant_info *)(params_base + 274996);
|
|
|
+ kernel_32->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_32 = csinn_alloc_tensor(sess);
|
|
|
+ bias_32->name = "bias_32";
|
|
|
+ bias_32->data = params_base + 279652;
|
|
|
+ bias_32->is_const = 1;
|
|
|
+ bias_32->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_32->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_32->dim[0] = 512;
|
|
|
+ bias_32->dim_count = 1;
|
|
|
+ bias_32->qinfo = (struct csinn_quant_info *)(params_base + 279628);
|
|
|
+ bias_32->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_32 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_32->group = 512;
|
|
|
+ params_32->stride_height = 1;
|
|
|
+ params_32->stride_width = 1;
|
|
|
+ params_32->dilation_height = 1;
|
|
|
+ params_32->dilation_width = 1;
|
|
|
+ params_32->conv_extra.kernel_tm = NULL;
|
|
|
+ params_32->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_32->pad_top = 1;
|
|
|
+ params_32->pad_left = 1;
|
|
|
+ params_32->pad_down = 1;
|
|
|
+ params_32->pad_right = 1;
|
|
|
+ params_32->base.name = "conv2d_55_fuse_multiply_56_fuse_add_57";
|
|
|
+ csinn_conv2d_init(output_31, output_32, kernel_32, bias_32, params_32);
|
|
|
+ struct csinn_tensor *output_33 = csinn_alloc_tensor(sess);
|
|
|
+ output_33->name = "output_33";
|
|
|
+ output_33->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_33->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_33->dim[0] = 1;
|
|
|
+ output_33->dim[1] = 512;
|
|
|
+ output_33->dim[2] = 19;
|
|
|
+ output_33->dim[3] = 19;
|
|
|
+ output_33->dim_count = 4;
|
|
|
+ output_33->qinfo = (struct csinn_quant_info *)(params_base + 281700);
|
|
|
+ output_33->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_33 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_33->base.name = "relu_58";
|
|
|
+ csinn_relu_init(output_32, output_33, params_33);
|
|
|
+ struct csinn_tensor *output_34 = csinn_alloc_tensor(sess);
|
|
|
+ output_34->name = "output_34";
|
|
|
+ output_34->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_34->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_34->dim[0] = 1;
|
|
|
+ output_34->dim[1] = 512;
|
|
|
+ output_34->dim[2] = 19;
|
|
|
+ output_34->dim[3] = 19;
|
|
|
+ output_34->dim_count = 4;
|
|
|
+ output_34->qinfo = (struct csinn_quant_info *)(params_base + 281724);
|
|
|
+ output_34->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_34 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_34->name = "kernel_34";
|
|
|
+ kernel_34->data = params_base + 281772;
|
|
|
+ kernel_34->is_const = 1;
|
|
|
+ kernel_34->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_34->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_34->dim[0] = 512;
|
|
|
+ kernel_34->dim[1] = 512;
|
|
|
+ kernel_34->dim[2] = 1;
|
|
|
+ kernel_34->dim[3] = 1;
|
|
|
+ kernel_34->dim_count = 4;
|
|
|
+ kernel_34->qinfo = (struct csinn_quant_info *)(params_base + 281748);
|
|
|
+ kernel_34->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_34 = csinn_alloc_tensor(sess);
|
|
|
+ bias_34->name = "bias_34";
|
|
|
+ bias_34->data = params_base + 543940;
|
|
|
+ bias_34->is_const = 1;
|
|
|
+ bias_34->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_34->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_34->dim[0] = 512;
|
|
|
+ bias_34->dim_count = 1;
|
|
|
+ bias_34->qinfo = (struct csinn_quant_info *)(params_base + 543916);
|
|
|
+ bias_34->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_34 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_34->group = 1;
|
|
|
+ params_34->stride_height = 1;
|
|
|
+ params_34->stride_width = 1;
|
|
|
+ params_34->dilation_height = 1;
|
|
|
+ params_34->dilation_width = 1;
|
|
|
+ params_34->conv_extra.kernel_tm = NULL;
|
|
|
+ params_34->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_34->pad_top = 0;
|
|
|
+ params_34->pad_left = 0;
|
|
|
+ params_34->pad_down = 0;
|
|
|
+ params_34->pad_right = 0;
|
|
|
+ params_34->base.name = "conv2d_59_fuse_multiply_60_fuse_add_61";
|
|
|
+ csinn_conv2d_init(output_33, output_34, kernel_34, bias_34, params_34);
|
|
|
+ struct csinn_tensor *output_35 = csinn_alloc_tensor(sess);
|
|
|
+ output_35->name = "output_35";
|
|
|
+ output_35->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_35->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_35->dim[0] = 1;
|
|
|
+ output_35->dim[1] = 512;
|
|
|
+ output_35->dim[2] = 19;
|
|
|
+ output_35->dim[3] = 19;
|
|
|
+ output_35->dim_count = 4;
|
|
|
+ output_35->qinfo = (struct csinn_quant_info *)(params_base + 545988);
|
|
|
+ output_35->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_35 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_35->base.name = "relu_62";
|
|
|
+ csinn_relu_init(output_34, output_35, params_35);
|
|
|
+ struct csinn_tensor *output_36 = csinn_alloc_tensor(sess);
|
|
|
+ output_36->name = "output_36";
|
|
|
+ output_36->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_36->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_36->dim[0] = 1;
|
|
|
+ output_36->dim[1] = 512;
|
|
|
+ output_36->dim[2] = 19;
|
|
|
+ output_36->dim[3] = 19;
|
|
|
+ output_36->dim_count = 4;
|
|
|
+ output_36->qinfo = (struct csinn_quant_info *)(params_base + 546012);
|
|
|
+ output_36->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_36 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_36->name = "kernel_36";
|
|
|
+ kernel_36->data = params_base + 546060;
|
|
|
+ kernel_36->is_const = 1;
|
|
|
+ kernel_36->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_36->layout = CSINN_LAYOUT_O1HW;
|
|
|
+ kernel_36->dim[0] = 512;
|
|
|
+ kernel_36->dim[1] = 1;
|
|
|
+ kernel_36->dim[2] = 3;
|
|
|
+ kernel_36->dim[3] = 3;
|
|
|
+ kernel_36->dim_count = 4;
|
|
|
+ kernel_36->qinfo = (struct csinn_quant_info *)(params_base + 546036);
|
|
|
+ kernel_36->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_36 = csinn_alloc_tensor(sess);
|
|
|
+ bias_36->name = "bias_36";
|
|
|
+ bias_36->data = params_base + 550692;
|
|
|
+ bias_36->is_const = 1;
|
|
|
+ bias_36->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_36->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_36->dim[0] = 512;
|
|
|
+ bias_36->dim_count = 1;
|
|
|
+ bias_36->qinfo = (struct csinn_quant_info *)(params_base + 550668);
|
|
|
+ bias_36->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_36 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_36->group = 512;
|
|
|
+ params_36->stride_height = 1;
|
|
|
+ params_36->stride_width = 1;
|
|
|
+ params_36->dilation_height = 1;
|
|
|
+ params_36->dilation_width = 1;
|
|
|
+ params_36->conv_extra.kernel_tm = NULL;
|
|
|
+ params_36->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_36->pad_top = 1;
|
|
|
+ params_36->pad_left = 1;
|
|
|
+ params_36->pad_down = 1;
|
|
|
+ params_36->pad_right = 1;
|
|
|
+ params_36->base.name = "conv2d_63_fuse_multiply_64_fuse_add_65";
|
|
|
+ csinn_conv2d_init(output_35, output_36, kernel_36, bias_36, params_36);
|
|
|
+ struct csinn_tensor *output_37 = csinn_alloc_tensor(sess);
|
|
|
+ output_37->name = "output_37";
|
|
|
+ output_37->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_37->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_37->dim[0] = 1;
|
|
|
+ output_37->dim[1] = 512;
|
|
|
+ output_37->dim[2] = 19;
|
|
|
+ output_37->dim[3] = 19;
|
|
|
+ output_37->dim_count = 4;
|
|
|
+ output_37->qinfo = (struct csinn_quant_info *)(params_base + 552740);
|
|
|
+ output_37->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_37 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_37->base.name = "relu_66";
|
|
|
+ csinn_relu_init(output_36, output_37, params_37);
|
|
|
+ struct csinn_tensor *output_38 = csinn_alloc_tensor(sess);
|
|
|
+ output_38->name = "output_38";
|
|
|
+ output_38->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_38->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_38->dim[0] = 1;
|
|
|
+ output_38->dim[1] = 512;
|
|
|
+ output_38->dim[2] = 19;
|
|
|
+ output_38->dim[3] = 19;
|
|
|
+ output_38->dim_count = 4;
|
|
|
+ output_38->qinfo = (struct csinn_quant_info *)(params_base + 552764);
|
|
|
+ output_38->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_38 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_38->name = "kernel_38";
|
|
|
+ kernel_38->data = params_base + 552812;
|
|
|
+ kernel_38->is_const = 1;
|
|
|
+ kernel_38->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_38->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_38->dim[0] = 512;
|
|
|
+ kernel_38->dim[1] = 512;
|
|
|
+ kernel_38->dim[2] = 1;
|
|
|
+ kernel_38->dim[3] = 1;
|
|
|
+ kernel_38->dim_count = 4;
|
|
|
+ kernel_38->qinfo = (struct csinn_quant_info *)(params_base + 552788);
|
|
|
+ kernel_38->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_38 = csinn_alloc_tensor(sess);
|
|
|
+ bias_38->name = "bias_38";
|
|
|
+ bias_38->data = params_base + 814980;
|
|
|
+ bias_38->is_const = 1;
|
|
|
+ bias_38->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_38->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_38->dim[0] = 512;
|
|
|
+ bias_38->dim_count = 1;
|
|
|
+ bias_38->qinfo = (struct csinn_quant_info *)(params_base + 814956);
|
|
|
+ bias_38->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_38 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_38->group = 1;
|
|
|
+ params_38->stride_height = 1;
|
|
|
+ params_38->stride_width = 1;
|
|
|
+ params_38->dilation_height = 1;
|
|
|
+ params_38->dilation_width = 1;
|
|
|
+ params_38->conv_extra.kernel_tm = NULL;
|
|
|
+ params_38->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_38->pad_top = 0;
|
|
|
+ params_38->pad_left = 0;
|
|
|
+ params_38->pad_down = 0;
|
|
|
+ params_38->pad_right = 0;
|
|
|
+ params_38->base.name = "conv2d_67_fuse_multiply_68_fuse_add_69";
|
|
|
+ csinn_conv2d_init(output_37, output_38, kernel_38, bias_38, params_38);
|
|
|
+ struct csinn_tensor *output_39 = csinn_alloc_tensor(sess);
|
|
|
+ output_39->name = "output_39";
|
|
|
+ output_39->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_39->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_39->dim[0] = 1;
|
|
|
+ output_39->dim[1] = 512;
|
|
|
+ output_39->dim[2] = 19;
|
|
|
+ output_39->dim[3] = 19;
|
|
|
+ output_39->dim_count = 4;
|
|
|
+ output_39->qinfo = (struct csinn_quant_info *)(params_base + 817028);
|
|
|
+ output_39->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_39 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_39->base.name = "relu_70";
|
|
|
+ csinn_relu_init(output_38, output_39, params_39);
|
|
|
+ struct csinn_tensor *output_40 = csinn_alloc_tensor(sess);
|
|
|
+ output_40->name = "output_40";
|
|
|
+ output_40->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_40->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_40->dim[0] = 1;
|
|
|
+ output_40->dim[1] = 512;
|
|
|
+ output_40->dim[2] = 19;
|
|
|
+ output_40->dim[3] = 19;
|
|
|
+ output_40->dim_count = 4;
|
|
|
+ output_40->qinfo = (struct csinn_quant_info *)(params_base + 817052);
|
|
|
+ output_40->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_40 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_40->name = "kernel_40";
|
|
|
+ kernel_40->data = params_base + 817100;
|
|
|
+ kernel_40->is_const = 1;
|
|
|
+ kernel_40->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_40->layout = CSINN_LAYOUT_O1HW;
|
|
|
+ kernel_40->dim[0] = 512;
|
|
|
+ kernel_40->dim[1] = 1;
|
|
|
+ kernel_40->dim[2] = 3;
|
|
|
+ kernel_40->dim[3] = 3;
|
|
|
+ kernel_40->dim_count = 4;
|
|
|
+ kernel_40->qinfo = (struct csinn_quant_info *)(params_base + 817076);
|
|
|
+ kernel_40->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_40 = csinn_alloc_tensor(sess);
|
|
|
+ bias_40->name = "bias_40";
|
|
|
+ bias_40->data = params_base + 821732;
|
|
|
+ bias_40->is_const = 1;
|
|
|
+ bias_40->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_40->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_40->dim[0] = 512;
|
|
|
+ bias_40->dim_count = 1;
|
|
|
+ bias_40->qinfo = (struct csinn_quant_info *)(params_base + 821708);
|
|
|
+ bias_40->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_40 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_40->group = 512;
|
|
|
+ params_40->stride_height = 1;
|
|
|
+ params_40->stride_width = 1;
|
|
|
+ params_40->dilation_height = 1;
|
|
|
+ params_40->dilation_width = 1;
|
|
|
+ params_40->conv_extra.kernel_tm = NULL;
|
|
|
+ params_40->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_40->pad_top = 1;
|
|
|
+ params_40->pad_left = 1;
|
|
|
+ params_40->pad_down = 1;
|
|
|
+ params_40->pad_right = 1;
|
|
|
+ params_40->base.name = "conv2d_71_fuse_multiply_72_fuse_add_73";
|
|
|
+ csinn_conv2d_init(output_39, output_40, kernel_40, bias_40, params_40);
|
|
|
+ struct csinn_tensor *output_41 = csinn_alloc_tensor(sess);
|
|
|
+ output_41->name = "output_41";
|
|
|
+ output_41->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_41->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_41->dim[0] = 1;
|
|
|
+ output_41->dim[1] = 512;
|
|
|
+ output_41->dim[2] = 19;
|
|
|
+ output_41->dim[3] = 19;
|
|
|
+ output_41->dim_count = 4;
|
|
|
+ output_41->qinfo = (struct csinn_quant_info *)(params_base + 823780);
|
|
|
+ output_41->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_41 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_41->base.name = "relu_74";
|
|
|
+ csinn_relu_init(output_40, output_41, params_41);
|
|
|
+ struct csinn_tensor *output_42 = csinn_alloc_tensor(sess);
|
|
|
+ output_42->name = "output_42";
|
|
|
+ output_42->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_42->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_42->dim[0] = 1;
|
|
|
+ output_42->dim[1] = 512;
|
|
|
+ output_42->dim[2] = 19;
|
|
|
+ output_42->dim[3] = 19;
|
|
|
+ output_42->dim_count = 4;
|
|
|
+ output_42->qinfo = (struct csinn_quant_info *)(params_base + 823804);
|
|
|
+ output_42->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_42 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_42->name = "kernel_42";
|
|
|
+ kernel_42->data = params_base + 823852;
|
|
|
+ kernel_42->is_const = 1;
|
|
|
+ kernel_42->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_42->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_42->dim[0] = 512;
|
|
|
+ kernel_42->dim[1] = 512;
|
|
|
+ kernel_42->dim[2] = 1;
|
|
|
+ kernel_42->dim[3] = 1;
|
|
|
+ kernel_42->dim_count = 4;
|
|
|
+ kernel_42->qinfo = (struct csinn_quant_info *)(params_base + 823828);
|
|
|
+ kernel_42->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_42 = csinn_alloc_tensor(sess);
|
|
|
+ bias_42->name = "bias_42";
|
|
|
+ bias_42->data = params_base + 1086020;
|
|
|
+ bias_42->is_const = 1;
|
|
|
+ bias_42->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_42->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_42->dim[0] = 512;
|
|
|
+ bias_42->dim_count = 1;
|
|
|
+ bias_42->qinfo = (struct csinn_quant_info *)(params_base + 1085996);
|
|
|
+ bias_42->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_42 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_42->group = 1;
|
|
|
+ params_42->stride_height = 1;
|
|
|
+ params_42->stride_width = 1;
|
|
|
+ params_42->dilation_height = 1;
|
|
|
+ params_42->dilation_width = 1;
|
|
|
+ params_42->conv_extra.kernel_tm = NULL;
|
|
|
+ params_42->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_42->pad_top = 0;
|
|
|
+ params_42->pad_left = 0;
|
|
|
+ params_42->pad_down = 0;
|
|
|
+ params_42->pad_right = 0;
|
|
|
+ params_42->base.name = "conv2d_75_fuse_multiply_76_fuse_add_77";
|
|
|
+ csinn_conv2d_init(output_41, output_42, kernel_42, bias_42, params_42);
|
|
|
+ struct csinn_tensor *output_43 = csinn_alloc_tensor(sess);
|
|
|
+ output_43->name = "output_43";
|
|
|
+ output_43->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_43->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_43->dim[0] = 1;
|
|
|
+ output_43->dim[1] = 512;
|
|
|
+ output_43->dim[2] = 19;
|
|
|
+ output_43->dim[3] = 19;
|
|
|
+ output_43->dim_count = 4;
|
|
|
+ output_43->qinfo = (struct csinn_quant_info *)(params_base + 1088068);
|
|
|
+ output_43->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_43 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_43->base.name = "relu_78";
|
|
|
+ csinn_relu_init(output_42, output_43, params_43);
|
|
|
+ struct csinn_tensor *output_44 = csinn_alloc_tensor(sess);
|
|
|
+ output_44->name = "output_44";
|
|
|
+ output_44->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_44->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_44->dim[0] = 1;
|
|
|
+ output_44->dim[1] = 512;
|
|
|
+ output_44->dim[2] = 19;
|
|
|
+ output_44->dim[3] = 19;
|
|
|
+ output_44->dim_count = 4;
|
|
|
+ output_44->qinfo = (struct csinn_quant_info *)(params_base + 1088092);
|
|
|
+ output_44->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_44 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_44->name = "kernel_44";
|
|
|
+ kernel_44->data = params_base + 1088140;
|
|
|
+ kernel_44->is_const = 1;
|
|
|
+ kernel_44->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_44->layout = CSINN_LAYOUT_O1HW;
|
|
|
+ kernel_44->dim[0] = 512;
|
|
|
+ kernel_44->dim[1] = 1;
|
|
|
+ kernel_44->dim[2] = 3;
|
|
|
+ kernel_44->dim[3] = 3;
|
|
|
+ kernel_44->dim_count = 4;
|
|
|
+ kernel_44->qinfo = (struct csinn_quant_info *)(params_base + 1088116);
|
|
|
+ kernel_44->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_44 = csinn_alloc_tensor(sess);
|
|
|
+ bias_44->name = "bias_44";
|
|
|
+ bias_44->data = params_base + 1092772;
|
|
|
+ bias_44->is_const = 1;
|
|
|
+ bias_44->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_44->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_44->dim[0] = 512;
|
|
|
+ bias_44->dim_count = 1;
|
|
|
+ bias_44->qinfo = (struct csinn_quant_info *)(params_base + 1092748);
|
|
|
+ bias_44->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_44 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_44->group = 512;
|
|
|
+ params_44->stride_height = 1;
|
|
|
+ params_44->stride_width = 1;
|
|
|
+ params_44->dilation_height = 1;
|
|
|
+ params_44->dilation_width = 1;
|
|
|
+ params_44->conv_extra.kernel_tm = NULL;
|
|
|
+ params_44->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_44->pad_top = 1;
|
|
|
+ params_44->pad_left = 1;
|
|
|
+ params_44->pad_down = 1;
|
|
|
+ params_44->pad_right = 1;
|
|
|
+ params_44->base.name = "conv2d_79_fuse_multiply_80_fuse_add_81";
|
|
|
+ csinn_conv2d_init(output_43, output_44, kernel_44, bias_44, params_44);
|
|
|
+ struct csinn_tensor *output_45 = csinn_alloc_tensor(sess);
|
|
|
+ output_45->name = "output_45";
|
|
|
+ output_45->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_45->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_45->dim[0] = 1;
|
|
|
+ output_45->dim[1] = 512;
|
|
|
+ output_45->dim[2] = 19;
|
|
|
+ output_45->dim[3] = 19;
|
|
|
+ output_45->dim_count = 4;
|
|
|
+ output_45->qinfo = (struct csinn_quant_info *)(params_base + 1094820);
|
|
|
+ output_45->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_45 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_45->base.name = "relu_82";
|
|
|
+ csinn_relu_init(output_44, output_45, params_45);
|
|
|
+ struct csinn_tensor *output_46 = csinn_alloc_tensor(sess);
|
|
|
+ output_46->name = "output_46";
|
|
|
+ output_46->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_46->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_46->dim[0] = 1;
|
|
|
+ output_46->dim[1] = 512;
|
|
|
+ output_46->dim[2] = 19;
|
|
|
+ output_46->dim[3] = 19;
|
|
|
+ output_46->dim_count = 4;
|
|
|
+ output_46->qinfo = (struct csinn_quant_info *)(params_base + 1094844);
|
|
|
+ output_46->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_46 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_46->name = "kernel_46";
|
|
|
+ kernel_46->data = params_base + 1094892;
|
|
|
+ kernel_46->is_const = 1;
|
|
|
+ kernel_46->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_46->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_46->dim[0] = 512;
|
|
|
+ kernel_46->dim[1] = 512;
|
|
|
+ kernel_46->dim[2] = 1;
|
|
|
+ kernel_46->dim[3] = 1;
|
|
|
+ kernel_46->dim_count = 4;
|
|
|
+ kernel_46->qinfo = (struct csinn_quant_info *)(params_base + 1094868);
|
|
|
+ kernel_46->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_46 = csinn_alloc_tensor(sess);
|
|
|
+ bias_46->name = "bias_46";
|
|
|
+ bias_46->data = params_base + 1357060;
|
|
|
+ bias_46->is_const = 1;
|
|
|
+ bias_46->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_46->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_46->dim[0] = 512;
|
|
|
+ bias_46->dim_count = 1;
|
|
|
+ bias_46->qinfo = (struct csinn_quant_info *)(params_base + 1357036);
|
|
|
+ bias_46->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_46 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_46->group = 1;
|
|
|
+ params_46->stride_height = 1;
|
|
|
+ params_46->stride_width = 1;
|
|
|
+ params_46->dilation_height = 1;
|
|
|
+ params_46->dilation_width = 1;
|
|
|
+ params_46->conv_extra.kernel_tm = NULL;
|
|
|
+ params_46->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_46->pad_top = 0;
|
|
|
+ params_46->pad_left = 0;
|
|
|
+ params_46->pad_down = 0;
|
|
|
+ params_46->pad_right = 0;
|
|
|
+ params_46->base.name = "conv2d_83_fuse_multiply_84_fuse_add_85";
|
|
|
+ csinn_conv2d_init(output_45, output_46, kernel_46, bias_46, params_46);
|
|
|
+ struct csinn_tensor *output_47 = csinn_alloc_tensor(sess);
|
|
|
+ output_47->name = "output_47";
|
|
|
+ output_47->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_47->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_47->dim[0] = 1;
|
|
|
+ output_47->dim[1] = 512;
|
|
|
+ output_47->dim[2] = 19;
|
|
|
+ output_47->dim[3] = 19;
|
|
|
+ output_47->dim_count = 4;
|
|
|
+ output_47->qinfo = (struct csinn_quant_info *)(params_base + 1359108);
|
|
|
+ output_47->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_47 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_47->base.name = "relu_86";
|
|
|
+ csinn_relu_init(output_46, output_47, params_47);
|
|
|
+ struct csinn_tensor *output_48 = csinn_alloc_tensor(sess);
|
|
|
+ output_48->name = "output_48";
|
|
|
+ output_48->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_48->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_48->dim[0] = 1;
|
|
|
+ output_48->dim[1] = 512;
|
|
|
+ output_48->dim[2] = 19;
|
|
|
+ output_48->dim[3] = 19;
|
|
|
+ output_48->dim_count = 4;
|
|
|
+ output_48->qinfo = (struct csinn_quant_info *)(params_base + 1359132);
|
|
|
+ output_48->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_48 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_48->name = "kernel_48";
|
|
|
+ kernel_48->data = params_base + 1359180;
|
|
|
+ kernel_48->is_const = 1;
|
|
|
+ kernel_48->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_48->layout = CSINN_LAYOUT_O1HW;
|
|
|
+ kernel_48->dim[0] = 512;
|
|
|
+ kernel_48->dim[1] = 1;
|
|
|
+ kernel_48->dim[2] = 3;
|
|
|
+ kernel_48->dim[3] = 3;
|
|
|
+ kernel_48->dim_count = 4;
|
|
|
+ kernel_48->qinfo = (struct csinn_quant_info *)(params_base + 1359156);
|
|
|
+ kernel_48->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_48 = csinn_alloc_tensor(sess);
|
|
|
+ bias_48->name = "bias_48";
|
|
|
+ bias_48->data = params_base + 1363812;
|
|
|
+ bias_48->is_const = 1;
|
|
|
+ bias_48->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_48->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_48->dim[0] = 512;
|
|
|
+ bias_48->dim_count = 1;
|
|
|
+ bias_48->qinfo = (struct csinn_quant_info *)(params_base + 1363788);
|
|
|
+ bias_48->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_48 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_48->group = 512;
|
|
|
+ params_48->stride_height = 1;
|
|
|
+ params_48->stride_width = 1;
|
|
|
+ params_48->dilation_height = 1;
|
|
|
+ params_48->dilation_width = 1;
|
|
|
+ params_48->conv_extra.kernel_tm = NULL;
|
|
|
+ params_48->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_48->pad_top = 1;
|
|
|
+ params_48->pad_left = 1;
|
|
|
+ params_48->pad_down = 1;
|
|
|
+ params_48->pad_right = 1;
|
|
|
+ params_48->base.name = "conv2d_87_fuse_multiply_88_fuse_add_89";
|
|
|
+ csinn_conv2d_init(output_47, output_48, kernel_48, bias_48, params_48);
|
|
|
+ struct csinn_tensor *output_49 = csinn_alloc_tensor(sess);
|
|
|
+ output_49->name = "output_49";
|
|
|
+ output_49->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_49->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_49->dim[0] = 1;
|
|
|
+ output_49->dim[1] = 512;
|
|
|
+ output_49->dim[2] = 19;
|
|
|
+ output_49->dim[3] = 19;
|
|
|
+ output_49->dim_count = 4;
|
|
|
+ output_49->qinfo = (struct csinn_quant_info *)(params_base + 1365860);
|
|
|
+ output_49->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_49 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_49->base.name = "relu_90";
|
|
|
+ csinn_relu_init(output_48, output_49, params_49);
|
|
|
+ struct csinn_tensor *output_50 = csinn_alloc_tensor(sess);
|
|
|
+ output_50->name = "output_50";
|
|
|
+ output_50->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_50->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_50->dim[0] = 1;
|
|
|
+ output_50->dim[1] = 512;
|
|
|
+ output_50->dim[2] = 19;
|
|
|
+ output_50->dim[3] = 19;
|
|
|
+ output_50->dim_count = 4;
|
|
|
+ output_50->qinfo = (struct csinn_quant_info *)(params_base + 1365884);
|
|
|
+ output_50->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_50 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_50->name = "kernel_50";
|
|
|
+ kernel_50->data = params_base + 1365932;
|
|
|
+ kernel_50->is_const = 1;
|
|
|
+ kernel_50->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_50->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_50->dim[0] = 512;
|
|
|
+ kernel_50->dim[1] = 512;
|
|
|
+ kernel_50->dim[2] = 1;
|
|
|
+ kernel_50->dim[3] = 1;
|
|
|
+ kernel_50->dim_count = 4;
|
|
|
+ kernel_50->qinfo = (struct csinn_quant_info *)(params_base + 1365908);
|
|
|
+ kernel_50->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_50 = csinn_alloc_tensor(sess);
|
|
|
+ bias_50->name = "bias_50";
|
|
|
+ bias_50->data = params_base + 1628100;
|
|
|
+ bias_50->is_const = 1;
|
|
|
+ bias_50->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_50->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_50->dim[0] = 512;
|
|
|
+ bias_50->dim_count = 1;
|
|
|
+ bias_50->qinfo = (struct csinn_quant_info *)(params_base + 1628076);
|
|
|
+ bias_50->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_50 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_50->group = 1;
|
|
|
+ params_50->stride_height = 1;
|
|
|
+ params_50->stride_width = 1;
|
|
|
+ params_50->dilation_height = 1;
|
|
|
+ params_50->dilation_width = 1;
|
|
|
+ params_50->conv_extra.kernel_tm = NULL;
|
|
|
+ params_50->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_50->pad_top = 0;
|
|
|
+ params_50->pad_left = 0;
|
|
|
+ params_50->pad_down = 0;
|
|
|
+ params_50->pad_right = 0;
|
|
|
+ params_50->base.name = "conv2d_91_fuse_multiply_92_fuse_add_93";
|
|
|
+ csinn_conv2d_init(output_49, output_50, kernel_50, bias_50, params_50);
|
|
|
+ struct csinn_tensor *output_51 = csinn_alloc_tensor(sess);
|
|
|
+ output_51->name = "output_51";
|
|
|
+ output_51->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_51->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_51->dim[0] = 1;
|
|
|
+ output_51->dim[1] = 512;
|
|
|
+ output_51->dim[2] = 19;
|
|
|
+ output_51->dim[3] = 19;
|
|
|
+ output_51->dim_count = 4;
|
|
|
+ output_51->qinfo = (struct csinn_quant_info *)(params_base + 1630148);
|
|
|
+ output_51->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_51 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_51->base.name = "relu_94";
|
|
|
+ csinn_relu_init(output_50, output_51, params_51);
|
|
|
+ struct csinn_tensor *output_52 = csinn_alloc_tensor(sess);
|
|
|
+ output_52->name = "output_52";
|
|
|
+ output_52->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_52->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_52->dim[0] = 1;
|
|
|
+ output_52->dim[1] = 12;
|
|
|
+ output_52->dim[2] = 19;
|
|
|
+ output_52->dim[3] = 19;
|
|
|
+ output_52->dim_count = 4;
|
|
|
+ output_52->qinfo = (struct csinn_quant_info *)(params_base + 1630172);
|
|
|
+ output_52->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_52 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_52->name = "kernel_52";
|
|
|
+ kernel_52->data = params_base + 1630220;
|
|
|
+ kernel_52->is_const = 1;
|
|
|
+ kernel_52->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_52->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_52->dim[0] = 12;
|
|
|
+ kernel_52->dim[1] = 512;
|
|
|
+ kernel_52->dim[2] = 1;
|
|
|
+ kernel_52->dim[3] = 1;
|
|
|
+ kernel_52->dim_count = 4;
|
|
|
+ kernel_52->qinfo = (struct csinn_quant_info *)(params_base + 1630196);
|
|
|
+ kernel_52->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_52 = csinn_alloc_tensor(sess);
|
|
|
+ bias_52->name = "bias_52";
|
|
|
+ bias_52->data = params_base + 1636388;
|
|
|
+ bias_52->is_const = 1;
|
|
|
+ bias_52->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_52->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_52->dim[0] = 12;
|
|
|
+ bias_52->dim_count = 1;
|
|
|
+ bias_52->qinfo = (struct csinn_quant_info *)(params_base + 1636364);
|
|
|
+ bias_52->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_52 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_52->group = 1;
|
|
|
+ params_52->stride_height = 1;
|
|
|
+ params_52->stride_width = 1;
|
|
|
+ params_52->dilation_height = 1;
|
|
|
+ params_52->dilation_width = 1;
|
|
|
+ params_52->conv_extra.kernel_tm = NULL;
|
|
|
+ params_52->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_52->pad_top = 0;
|
|
|
+ params_52->pad_left = 0;
|
|
|
+ params_52->pad_down = 0;
|
|
|
+ params_52->pad_right = 0;
|
|
|
+ params_52->base.name = "conv2d_95_fuse_bias_add_96";
|
|
|
+ csinn_conv2d_init(output_51, output_52, kernel_52, bias_52, params_52);
|
|
|
+ int32_t *permute_53 = malloc(4 * 4);
|
|
|
+ permute_53[0] = 0;
|
|
|
+ permute_53[1] = 2;
|
|
|
+ permute_53[2] = 3;
|
|
|
+ permute_53[3] = 1;
|
|
|
+ struct csinn_tensor *output_53 = csinn_alloc_tensor(sess);
|
|
|
+ output_53->name = "output_53";
|
|
|
+ output_53->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_53->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_53->dim[0] = 1;
|
|
|
+ output_53->dim[1] = 19;
|
|
|
+ output_53->dim[2] = 19;
|
|
|
+ output_53->dim[3] = 12;
|
|
|
+ output_53->dim_count = 4;
|
|
|
+ output_53->qinfo = (struct csinn_quant_info *)(params_base + 1636436);
|
|
|
+ output_53->quant_channel = 1;
|
|
|
+ struct csinn_transpose_params *params_53 = csinn_alloc_params(sizeof(struct csinn_transpose_params), sess);
|
|
|
+ params_53->permute = permute_53;
|
|
|
+ params_53->permute_num = 4;
|
|
|
+ params_53->base.name = "transpose_97";
|
|
|
+ csinn_transpose_init(output_52, output_53, params_53);
|
|
|
+ int32_t *shape_54 = malloc(2 * 4);
|
|
|
+ shape_54[0] = 1;
|
|
|
+ shape_54[1] = 4332;
|
|
|
+ struct csinn_tensor *output_54 = csinn_alloc_tensor(sess);
|
|
|
+ output_54->name = "output_54";
|
|
|
+ output_54->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_54->layout = CSINN_LAYOUT_NC;
|
|
|
+ output_54->dim[0] = 1;
|
|
|
+ output_54->dim[1] = 4332;
|
|
|
+ output_54->dim_count = 2;
|
|
|
+ output_54->qinfo = (struct csinn_quant_info *)(params_base + 1636460);
|
|
|
+ output_54->quant_channel = 1;
|
|
|
+ struct csinn_reshape_params *params_54 = csinn_alloc_params(sizeof(struct csinn_reshape_params), sess);
|
|
|
+ params_54->shape = shape_54;
|
|
|
+ params_54->shape_num = 2;
|
|
|
+ params_54->base.name = "batch_flatten_98";
|
|
|
+ csinn_reshape_init(output_53, output_54, params_54);
|
|
|
+ struct csinn_tensor *output_56 = csinn_alloc_tensor(sess);
|
|
|
+ output_56->name = "output_56";
|
|
|
+ output_56->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_56->layout = CSINN_LAYOUT_NC;
|
|
|
+ output_56->dim[0] = 1;
|
|
|
+ output_56->dim[1] = 4332;
|
|
|
+ output_56->dim_count = 2;
|
|
|
+ output_56->qinfo = (struct csinn_quant_info *)(params_base + 1636484);
|
|
|
+ output_56->quant_channel = 1;
|
|
|
+ struct csinn_tensor *rhs_56 = csinn_alloc_tensor(sess);
|
|
|
+ rhs_56->name = "rhs_56";
|
|
|
+ rhs_56->data = params_base + 1636532;
|
|
|
+ rhs_56->is_const = 1;
|
|
|
+ rhs_56->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ rhs_56->layout = CSINN_LAYOUT_OI;
|
|
|
+ rhs_56->dim[0] = 1;
|
|
|
+ rhs_56->dim[1] = 4332;
|
|
|
+ rhs_56->dim_count = 2;
|
|
|
+ rhs_56->qinfo = (struct csinn_quant_info *)(params_base + 1636508);
|
|
|
+ rhs_56->quant_channel = 1;
|
|
|
+ struct csinn_diso_params *params_56 = csinn_alloc_params(sizeof(struct csinn_diso_params), sess);
|
|
|
+ params_56->base.name = "mul_167";
|
|
|
+ csinn_mul_init(output_54, rhs_56, output_56, params_56);
|
|
|
+ struct csinn_tensor *output_58 = csinn_alloc_tensor(sess);
|
|
|
+ output_58->name = "output_58";
|
|
|
+ output_58->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_58->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_58->dim[0] = 1;
|
|
|
+ output_58->dim[1] = 512;
|
|
|
+ output_58->dim[2] = 10;
|
|
|
+ output_58->dim[3] = 10;
|
|
|
+ output_58->dim_count = 4;
|
|
|
+ output_58->qinfo = (struct csinn_quant_info *)(params_base + 1640864);
|
|
|
+ output_58->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_58 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_58->name = "kernel_58";
|
|
|
+ kernel_58->data = params_base + 1640912;
|
|
|
+ kernel_58->is_const = 1;
|
|
|
+ kernel_58->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_58->layout = CSINN_LAYOUT_O1HW;
|
|
|
+ kernel_58->dim[0] = 512;
|
|
|
+ kernel_58->dim[1] = 1;
|
|
|
+ kernel_58->dim[2] = 3;
|
|
|
+ kernel_58->dim[3] = 3;
|
|
|
+ kernel_58->dim_count = 4;
|
|
|
+ kernel_58->qinfo = (struct csinn_quant_info *)(params_base + 1640888);
|
|
|
+ kernel_58->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_58 = csinn_alloc_tensor(sess);
|
|
|
+ bias_58->name = "bias_58";
|
|
|
+ bias_58->data = params_base + 1645544;
|
|
|
+ bias_58->is_const = 1;
|
|
|
+ bias_58->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_58->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_58->dim[0] = 512;
|
|
|
+ bias_58->dim_count = 1;
|
|
|
+ bias_58->qinfo = (struct csinn_quant_info *)(params_base + 1645520);
|
|
|
+ bias_58->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_58 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_58->group = 512;
|
|
|
+ params_58->stride_height = 2;
|
|
|
+ params_58->stride_width = 2;
|
|
|
+ params_58->dilation_height = 1;
|
|
|
+ params_58->dilation_width = 1;
|
|
|
+ params_58->conv_extra.kernel_tm = NULL;
|
|
|
+ params_58->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_58->pad_top = 1;
|
|
|
+ params_58->pad_left = 1;
|
|
|
+ params_58->pad_down = 1;
|
|
|
+ params_58->pad_right = 1;
|
|
|
+ params_58->base.name = "conv2d_99_fuse_multiply_100_fuse_add_101";
|
|
|
+ csinn_conv2d_init(output_51, output_58, kernel_58, bias_58, params_58);
|
|
|
+ struct csinn_tensor *output_59 = csinn_alloc_tensor(sess);
|
|
|
+ output_59->name = "output_59";
|
|
|
+ output_59->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_59->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_59->dim[0] = 1;
|
|
|
+ output_59->dim[1] = 512;
|
|
|
+ output_59->dim[2] = 10;
|
|
|
+ output_59->dim[3] = 10;
|
|
|
+ output_59->dim_count = 4;
|
|
|
+ output_59->qinfo = (struct csinn_quant_info *)(params_base + 1647592);
|
|
|
+ output_59->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_59 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_59->base.name = "relu_102";
|
|
|
+ csinn_relu_init(output_58, output_59, params_59);
|
|
|
+ struct csinn_tensor *output_60 = csinn_alloc_tensor(sess);
|
|
|
+ output_60->name = "output_60";
|
|
|
+ output_60->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_60->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_60->dim[0] = 1;
|
|
|
+ output_60->dim[1] = 1024;
|
|
|
+ output_60->dim[2] = 10;
|
|
|
+ output_60->dim[3] = 10;
|
|
|
+ output_60->dim_count = 4;
|
|
|
+ output_60->qinfo = (struct csinn_quant_info *)(params_base + 1647616);
|
|
|
+ output_60->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_60 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_60->name = "kernel_60";
|
|
|
+ kernel_60->data = params_base + 1647664;
|
|
|
+ kernel_60->is_const = 1;
|
|
|
+ kernel_60->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_60->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_60->dim[0] = 1024;
|
|
|
+ kernel_60->dim[1] = 512;
|
|
|
+ kernel_60->dim[2] = 1;
|
|
|
+ kernel_60->dim[3] = 1;
|
|
|
+ kernel_60->dim_count = 4;
|
|
|
+ kernel_60->qinfo = (struct csinn_quant_info *)(params_base + 1647640);
|
|
|
+ kernel_60->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_60 = csinn_alloc_tensor(sess);
|
|
|
+ bias_60->name = "bias_60";
|
|
|
+ bias_60->data = params_base + 2171976;
|
|
|
+ bias_60->is_const = 1;
|
|
|
+ bias_60->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_60->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_60->dim[0] = 1024;
|
|
|
+ bias_60->dim_count = 1;
|
|
|
+ bias_60->qinfo = (struct csinn_quant_info *)(params_base + 2171952);
|
|
|
+ bias_60->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_60 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_60->group = 1;
|
|
|
+ params_60->stride_height = 1;
|
|
|
+ params_60->stride_width = 1;
|
|
|
+ params_60->dilation_height = 1;
|
|
|
+ params_60->dilation_width = 1;
|
|
|
+ params_60->conv_extra.kernel_tm = NULL;
|
|
|
+ params_60->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_60->pad_top = 0;
|
|
|
+ params_60->pad_left = 0;
|
|
|
+ params_60->pad_down = 0;
|
|
|
+ params_60->pad_right = 0;
|
|
|
+ params_60->base.name = "conv2d_103_fuse_multiply_104_fuse_add_105";
|
|
|
+ csinn_conv2d_init(output_59, output_60, kernel_60, bias_60, params_60);
|
|
|
+ struct csinn_tensor *output_61 = csinn_alloc_tensor(sess);
|
|
|
+ output_61->name = "output_61";
|
|
|
+ output_61->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_61->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_61->dim[0] = 1;
|
|
|
+ output_61->dim[1] = 1024;
|
|
|
+ output_61->dim[2] = 10;
|
|
|
+ output_61->dim[3] = 10;
|
|
|
+ output_61->dim_count = 4;
|
|
|
+ output_61->qinfo = (struct csinn_quant_info *)(params_base + 2176072);
|
|
|
+ output_61->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_61 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_61->base.name = "relu_106";
|
|
|
+ csinn_relu_init(output_60, output_61, params_61);
|
|
|
+ struct csinn_tensor *output_62 = csinn_alloc_tensor(sess);
|
|
|
+ output_62->name = "output_62";
|
|
|
+ output_62->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_62->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_62->dim[0] = 1;
|
|
|
+ output_62->dim[1] = 1024;
|
|
|
+ output_62->dim[2] = 10;
|
|
|
+ output_62->dim[3] = 10;
|
|
|
+ output_62->dim_count = 4;
|
|
|
+ output_62->qinfo = (struct csinn_quant_info *)(params_base + 2176096);
|
|
|
+ output_62->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_62 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_62->name = "kernel_62";
|
|
|
+ kernel_62->data = params_base + 2176144;
|
|
|
+ kernel_62->is_const = 1;
|
|
|
+ kernel_62->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_62->layout = CSINN_LAYOUT_O1HW;
|
|
|
+ kernel_62->dim[0] = 1024;
|
|
|
+ kernel_62->dim[1] = 1;
|
|
|
+ kernel_62->dim[2] = 3;
|
|
|
+ kernel_62->dim[3] = 3;
|
|
|
+ kernel_62->dim_count = 4;
|
|
|
+ kernel_62->qinfo = (struct csinn_quant_info *)(params_base + 2176120);
|
|
|
+ kernel_62->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_62 = csinn_alloc_tensor(sess);
|
|
|
+ bias_62->name = "bias_62";
|
|
|
+ bias_62->data = params_base + 2185384;
|
|
|
+ bias_62->is_const = 1;
|
|
|
+ bias_62->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_62->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_62->dim[0] = 1024;
|
|
|
+ bias_62->dim_count = 1;
|
|
|
+ bias_62->qinfo = (struct csinn_quant_info *)(params_base + 2185360);
|
|
|
+ bias_62->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_62 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_62->group = 1024;
|
|
|
+ params_62->stride_height = 1;
|
|
|
+ params_62->stride_width = 1;
|
|
|
+ params_62->dilation_height = 1;
|
|
|
+ params_62->dilation_width = 1;
|
|
|
+ params_62->conv_extra.kernel_tm = NULL;
|
|
|
+ params_62->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_62->pad_top = 1;
|
|
|
+ params_62->pad_left = 1;
|
|
|
+ params_62->pad_down = 1;
|
|
|
+ params_62->pad_right = 1;
|
|
|
+ params_62->base.name = "conv2d_107_fuse_multiply_108_fuse_add_109";
|
|
|
+ csinn_conv2d_init(output_61, output_62, kernel_62, bias_62, params_62);
|
|
|
+ struct csinn_tensor *output_63 = csinn_alloc_tensor(sess);
|
|
|
+ output_63->name = "output_63";
|
|
|
+ output_63->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_63->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_63->dim[0] = 1;
|
|
|
+ output_63->dim[1] = 1024;
|
|
|
+ output_63->dim[2] = 10;
|
|
|
+ output_63->dim[3] = 10;
|
|
|
+ output_63->dim_count = 4;
|
|
|
+ output_63->qinfo = (struct csinn_quant_info *)(params_base + 2189480);
|
|
|
+ output_63->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_63 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_63->base.name = "relu_110";
|
|
|
+ csinn_relu_init(output_62, output_63, params_63);
|
|
|
+ struct csinn_tensor *output_64 = csinn_alloc_tensor(sess);
|
|
|
+ output_64->name = "output_64";
|
|
|
+ output_64->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_64->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_64->dim[0] = 1;
|
|
|
+ output_64->dim[1] = 1024;
|
|
|
+ output_64->dim[2] = 10;
|
|
|
+ output_64->dim[3] = 10;
|
|
|
+ output_64->dim_count = 4;
|
|
|
+ output_64->qinfo = (struct csinn_quant_info *)(params_base + 2189504);
|
|
|
+ output_64->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_64 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_64->name = "kernel_64";
|
|
|
+ kernel_64->data = params_base + 2189552;
|
|
|
+ kernel_64->is_const = 1;
|
|
|
+ kernel_64->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_64->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_64->dim[0] = 1024;
|
|
|
+ kernel_64->dim[1] = 1024;
|
|
|
+ kernel_64->dim[2] = 1;
|
|
|
+ kernel_64->dim[3] = 1;
|
|
|
+ kernel_64->dim_count = 4;
|
|
|
+ kernel_64->qinfo = (struct csinn_quant_info *)(params_base + 2189528);
|
|
|
+ kernel_64->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_64 = csinn_alloc_tensor(sess);
|
|
|
+ bias_64->name = "bias_64";
|
|
|
+ bias_64->data = params_base + 3238152;
|
|
|
+ bias_64->is_const = 1;
|
|
|
+ bias_64->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_64->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_64->dim[0] = 1024;
|
|
|
+ bias_64->dim_count = 1;
|
|
|
+ bias_64->qinfo = (struct csinn_quant_info *)(params_base + 3238128);
|
|
|
+ bias_64->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_64 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_64->group = 1;
|
|
|
+ params_64->stride_height = 1;
|
|
|
+ params_64->stride_width = 1;
|
|
|
+ params_64->dilation_height = 1;
|
|
|
+ params_64->dilation_width = 1;
|
|
|
+ params_64->conv_extra.kernel_tm = NULL;
|
|
|
+ params_64->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_64->pad_top = 0;
|
|
|
+ params_64->pad_left = 0;
|
|
|
+ params_64->pad_down = 0;
|
|
|
+ params_64->pad_right = 0;
|
|
|
+ params_64->base.name = "conv2d_111_fuse_multiply_112_fuse_add_113";
|
|
|
+ csinn_conv2d_init(output_63, output_64, kernel_64, bias_64, params_64);
|
|
|
+ struct csinn_tensor *output_65 = csinn_alloc_tensor(sess);
|
|
|
+ output_65->name = "output_65";
|
|
|
+ output_65->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_65->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_65->dim[0] = 1;
|
|
|
+ output_65->dim[1] = 1024;
|
|
|
+ output_65->dim[2] = 10;
|
|
|
+ output_65->dim[3] = 10;
|
|
|
+ output_65->dim_count = 4;
|
|
|
+ output_65->qinfo = (struct csinn_quant_info *)(params_base + 3242248);
|
|
|
+ output_65->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_65 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_65->base.name = "relu_114";
|
|
|
+ csinn_relu_init(output_64, output_65, params_65);
|
|
|
+ struct csinn_tensor *output_66 = csinn_alloc_tensor(sess);
|
|
|
+ output_66->name = "output_66";
|
|
|
+ output_66->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_66->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_66->dim[0] = 1;
|
|
|
+ output_66->dim[1] = 24;
|
|
|
+ output_66->dim[2] = 10;
|
|
|
+ output_66->dim[3] = 10;
|
|
|
+ output_66->dim_count = 4;
|
|
|
+ output_66->qinfo = (struct csinn_quant_info *)(params_base + 3242272);
|
|
|
+ output_66->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_66 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_66->name = "kernel_66";
|
|
|
+ kernel_66->data = params_base + 3242320;
|
|
|
+ kernel_66->is_const = 1;
|
|
|
+ kernel_66->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_66->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_66->dim[0] = 24;
|
|
|
+ kernel_66->dim[1] = 1024;
|
|
|
+ kernel_66->dim[2] = 1;
|
|
|
+ kernel_66->dim[3] = 1;
|
|
|
+ kernel_66->dim_count = 4;
|
|
|
+ kernel_66->qinfo = (struct csinn_quant_info *)(params_base + 3242296);
|
|
|
+ kernel_66->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_66 = csinn_alloc_tensor(sess);
|
|
|
+ bias_66->name = "bias_66";
|
|
|
+ bias_66->data = params_base + 3266920;
|
|
|
+ bias_66->is_const = 1;
|
|
|
+ bias_66->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_66->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_66->dim[0] = 24;
|
|
|
+ bias_66->dim_count = 1;
|
|
|
+ bias_66->qinfo = (struct csinn_quant_info *)(params_base + 3266896);
|
|
|
+ bias_66->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_66 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_66->group = 1;
|
|
|
+ params_66->stride_height = 1;
|
|
|
+ params_66->stride_width = 1;
|
|
|
+ params_66->dilation_height = 1;
|
|
|
+ params_66->dilation_width = 1;
|
|
|
+ params_66->conv_extra.kernel_tm = NULL;
|
|
|
+ params_66->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_66->pad_top = 0;
|
|
|
+ params_66->pad_left = 0;
|
|
|
+ params_66->pad_down = 0;
|
|
|
+ params_66->pad_right = 0;
|
|
|
+ params_66->base.name = "conv2d_115_fuse_bias_add_116";
|
|
|
+ csinn_conv2d_init(output_65, output_66, kernel_66, bias_66, params_66);
|
|
|
+ int32_t *permute_67 = malloc(4 * 4);
|
|
|
+ permute_67[0] = 0;
|
|
|
+ permute_67[1] = 2;
|
|
|
+ permute_67[2] = 3;
|
|
|
+ permute_67[3] = 1;
|
|
|
+ struct csinn_tensor *output_67 = csinn_alloc_tensor(sess);
|
|
|
+ output_67->name = "output_67";
|
|
|
+ output_67->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_67->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_67->dim[0] = 1;
|
|
|
+ output_67->dim[1] = 10;
|
|
|
+ output_67->dim[2] = 10;
|
|
|
+ output_67->dim[3] = 24;
|
|
|
+ output_67->dim_count = 4;
|
|
|
+ output_67->qinfo = (struct csinn_quant_info *)(params_base + 3267016);
|
|
|
+ output_67->quant_channel = 1;
|
|
|
+ struct csinn_transpose_params *params_67 = csinn_alloc_params(sizeof(struct csinn_transpose_params), sess);
|
|
|
+ params_67->permute = permute_67;
|
|
|
+ params_67->permute_num = 4;
|
|
|
+ params_67->base.name = "transpose_117";
|
|
|
+ csinn_transpose_init(output_66, output_67, params_67);
|
|
|
+ int32_t *shape_68 = malloc(2 * 4);
|
|
|
+ shape_68[0] = 1;
|
|
|
+ shape_68[1] = 2400;
|
|
|
+ struct csinn_tensor *output_68 = csinn_alloc_tensor(sess);
|
|
|
+ output_68->name = "output_68";
|
|
|
+ output_68->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_68->layout = CSINN_LAYOUT_NC;
|
|
|
+ output_68->dim[0] = 1;
|
|
|
+ output_68->dim[1] = 2400;
|
|
|
+ output_68->dim_count = 2;
|
|
|
+ output_68->qinfo = (struct csinn_quant_info *)(params_base + 3267040);
|
|
|
+ output_68->quant_channel = 1;
|
|
|
+ struct csinn_reshape_params *params_68 = csinn_alloc_params(sizeof(struct csinn_reshape_params), sess);
|
|
|
+ params_68->shape = shape_68;
|
|
|
+ params_68->shape_num = 2;
|
|
|
+ params_68->base.name = "batch_flatten_118";
|
|
|
+ csinn_reshape_init(output_67, output_68, params_68);
|
|
|
+ struct csinn_tensor *output_70 = csinn_alloc_tensor(sess);
|
|
|
+ output_70->name = "output_70";
|
|
|
+ output_70->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_70->layout = CSINN_LAYOUT_NC;
|
|
|
+ output_70->dim[0] = 1;
|
|
|
+ output_70->dim[1] = 2400;
|
|
|
+ output_70->dim_count = 2;
|
|
|
+ output_70->qinfo = (struct csinn_quant_info *)(params_base + 3267064);
|
|
|
+ output_70->quant_channel = 1;
|
|
|
+ struct csinn_tensor *rhs_70 = csinn_alloc_tensor(sess);
|
|
|
+ rhs_70->name = "rhs_70";
|
|
|
+ rhs_70->data = params_base + 3267112;
|
|
|
+ rhs_70->is_const = 1;
|
|
|
+ rhs_70->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ rhs_70->layout = CSINN_LAYOUT_OI;
|
|
|
+ rhs_70->dim[0] = 1;
|
|
|
+ rhs_70->dim[1] = 2400;
|
|
|
+ rhs_70->dim_count = 2;
|
|
|
+ rhs_70->qinfo = (struct csinn_quant_info *)(params_base + 3267088);
|
|
|
+ rhs_70->quant_channel = 1;
|
|
|
+ struct csinn_diso_params *params_70 = csinn_alloc_params(sizeof(struct csinn_diso_params), sess);
|
|
|
+ params_70->base.name = "mul_168";
|
|
|
+ csinn_mul_init(output_68, rhs_70, output_70, params_70);
|
|
|
+ struct csinn_tensor *output_72 = csinn_alloc_tensor(sess);
|
|
|
+ output_72->name = "output_72";
|
|
|
+ output_72->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_72->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_72->dim[0] = 1;
|
|
|
+ output_72->dim[1] = 256;
|
|
|
+ output_72->dim[2] = 10;
|
|
|
+ output_72->dim[3] = 10;
|
|
|
+ output_72->dim_count = 4;
|
|
|
+ output_72->qinfo = (struct csinn_quant_info *)(params_base + 3269512);
|
|
|
+ output_72->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_72 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_72->name = "kernel_72";
|
|
|
+ kernel_72->data = params_base + 3269560;
|
|
|
+ kernel_72->is_const = 1;
|
|
|
+ kernel_72->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_72->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_72->dim[0] = 256;
|
|
|
+ kernel_72->dim[1] = 1024;
|
|
|
+ kernel_72->dim[2] = 1;
|
|
|
+ kernel_72->dim[3] = 1;
|
|
|
+ kernel_72->dim_count = 4;
|
|
|
+ kernel_72->qinfo = (struct csinn_quant_info *)(params_base + 3269536);
|
|
|
+ kernel_72->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_72 = csinn_alloc_tensor(sess);
|
|
|
+ bias_72->name = "bias_72";
|
|
|
+ bias_72->data = params_base + 3531728;
|
|
|
+ bias_72->is_const = 1;
|
|
|
+ bias_72->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_72->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_72->dim[0] = 256;
|
|
|
+ bias_72->dim_count = 1;
|
|
|
+ bias_72->qinfo = (struct csinn_quant_info *)(params_base + 3531704);
|
|
|
+ bias_72->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_72 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_72->group = 1;
|
|
|
+ params_72->stride_height = 1;
|
|
|
+ params_72->stride_width = 1;
|
|
|
+ params_72->dilation_height = 1;
|
|
|
+ params_72->dilation_width = 1;
|
|
|
+ params_72->conv_extra.kernel_tm = NULL;
|
|
|
+ params_72->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_72->pad_top = 0;
|
|
|
+ params_72->pad_left = 0;
|
|
|
+ params_72->pad_down = 0;
|
|
|
+ params_72->pad_right = 0;
|
|
|
+ params_72->base.name = "conv2d_119_fuse_multiply_120_fuse_add_121";
|
|
|
+ csinn_conv2d_init(output_65, output_72, kernel_72, bias_72, params_72);
|
|
|
+ struct csinn_tensor *output_73 = csinn_alloc_tensor(sess);
|
|
|
+ output_73->name = "output_73";
|
|
|
+ output_73->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_73->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_73->dim[0] = 1;
|
|
|
+ output_73->dim[1] = 256;
|
|
|
+ output_73->dim[2] = 10;
|
|
|
+ output_73->dim[3] = 10;
|
|
|
+ output_73->dim_count = 4;
|
|
|
+ output_73->qinfo = (struct csinn_quant_info *)(params_base + 3532752);
|
|
|
+ output_73->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_73 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_73->base.name = "relu_122";
|
|
|
+ csinn_relu_init(output_72, output_73, params_73);
|
|
|
+ struct csinn_tensor *output_74 = csinn_alloc_tensor(sess);
|
|
|
+ output_74->name = "output_74";
|
|
|
+ output_74->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_74->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_74->dim[0] = 1;
|
|
|
+ output_74->dim[1] = 512;
|
|
|
+ output_74->dim[2] = 5;
|
|
|
+ output_74->dim[3] = 5;
|
|
|
+ output_74->dim_count = 4;
|
|
|
+ output_74->qinfo = (struct csinn_quant_info *)(params_base + 3532776);
|
|
|
+ output_74->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_74 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_74->name = "kernel_74";
|
|
|
+ kernel_74->data = params_base + 3532824;
|
|
|
+ kernel_74->is_const = 1;
|
|
|
+ kernel_74->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_74->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_74->dim[0] = 512;
|
|
|
+ kernel_74->dim[1] = 256;
|
|
|
+ kernel_74->dim[2] = 3;
|
|
|
+ kernel_74->dim[3] = 3;
|
|
|
+ kernel_74->dim_count = 4;
|
|
|
+ kernel_74->qinfo = (struct csinn_quant_info *)(params_base + 3532800);
|
|
|
+ kernel_74->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_74 = csinn_alloc_tensor(sess);
|
|
|
+ bias_74->name = "bias_74";
|
|
|
+ bias_74->data = params_base + 4712496;
|
|
|
+ bias_74->is_const = 1;
|
|
|
+ bias_74->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_74->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_74->dim[0] = 512;
|
|
|
+ bias_74->dim_count = 1;
|
|
|
+ bias_74->qinfo = (struct csinn_quant_info *)(params_base + 4712472);
|
|
|
+ bias_74->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_74 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_74->group = 1;
|
|
|
+ params_74->stride_height = 2;
|
|
|
+ params_74->stride_width = 2;
|
|
|
+ params_74->dilation_height = 1;
|
|
|
+ params_74->dilation_width = 1;
|
|
|
+ params_74->conv_extra.kernel_tm = NULL;
|
|
|
+ params_74->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_74->pad_top = 1;
|
|
|
+ params_74->pad_left = 1;
|
|
|
+ params_74->pad_down = 1;
|
|
|
+ params_74->pad_right = 1;
|
|
|
+ params_74->base.name = "conv2d_123_fuse_multiply_124_fuse_add_125";
|
|
|
+ csinn_conv2d_init(output_73, output_74, kernel_74, bias_74, params_74);
|
|
|
+ struct csinn_tensor *output_75 = csinn_alloc_tensor(sess);
|
|
|
+ output_75->name = "output_75";
|
|
|
+ output_75->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_75->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_75->dim[0] = 1;
|
|
|
+ output_75->dim[1] = 512;
|
|
|
+ output_75->dim[2] = 5;
|
|
|
+ output_75->dim[3] = 5;
|
|
|
+ output_75->dim_count = 4;
|
|
|
+ output_75->qinfo = (struct csinn_quant_info *)(params_base + 4714544);
|
|
|
+ output_75->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_75 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_75->base.name = "relu_126";
|
|
|
+ csinn_relu_init(output_74, output_75, params_75);
|
|
|
+ struct csinn_tensor *output_76 = csinn_alloc_tensor(sess);
|
|
|
+ output_76->name = "output_76";
|
|
|
+ output_76->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_76->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_76->dim[0] = 1;
|
|
|
+ output_76->dim[1] = 24;
|
|
|
+ output_76->dim[2] = 5;
|
|
|
+ output_76->dim[3] = 5;
|
|
|
+ output_76->dim_count = 4;
|
|
|
+ output_76->qinfo = (struct csinn_quant_info *)(params_base + 4714568);
|
|
|
+ output_76->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_76 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_76->name = "kernel_76";
|
|
|
+ kernel_76->data = params_base + 4714616;
|
|
|
+ kernel_76->is_const = 1;
|
|
|
+ kernel_76->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_76->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_76->dim[0] = 24;
|
|
|
+ kernel_76->dim[1] = 512;
|
|
|
+ kernel_76->dim[2] = 1;
|
|
|
+ kernel_76->dim[3] = 1;
|
|
|
+ kernel_76->dim_count = 4;
|
|
|
+ kernel_76->qinfo = (struct csinn_quant_info *)(params_base + 4714592);
|
|
|
+ kernel_76->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_76 = csinn_alloc_tensor(sess);
|
|
|
+ bias_76->name = "bias_76";
|
|
|
+ bias_76->data = params_base + 4726928;
|
|
|
+ bias_76->is_const = 1;
|
|
|
+ bias_76->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_76->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_76->dim[0] = 24;
|
|
|
+ bias_76->dim_count = 1;
|
|
|
+ bias_76->qinfo = (struct csinn_quant_info *)(params_base + 4726904);
|
|
|
+ bias_76->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_76 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_76->group = 1;
|
|
|
+ params_76->stride_height = 1;
|
|
|
+ params_76->stride_width = 1;
|
|
|
+ params_76->dilation_height = 1;
|
|
|
+ params_76->dilation_width = 1;
|
|
|
+ params_76->conv_extra.kernel_tm = NULL;
|
|
|
+ params_76->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_76->pad_top = 0;
|
|
|
+ params_76->pad_left = 0;
|
|
|
+ params_76->pad_down = 0;
|
|
|
+ params_76->pad_right = 0;
|
|
|
+ params_76->base.name = "conv2d_127_fuse_bias_add_128";
|
|
|
+ csinn_conv2d_init(output_75, output_76, kernel_76, bias_76, params_76);
|
|
|
+ int32_t *permute_77 = malloc(4 * 4);
|
|
|
+ permute_77[0] = 0;
|
|
|
+ permute_77[1] = 2;
|
|
|
+ permute_77[2] = 3;
|
|
|
+ permute_77[3] = 1;
|
|
|
+ struct csinn_tensor *output_77 = csinn_alloc_tensor(sess);
|
|
|
+ output_77->name = "output_77";
|
|
|
+ output_77->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_77->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_77->dim[0] = 1;
|
|
|
+ output_77->dim[1] = 5;
|
|
|
+ output_77->dim[2] = 5;
|
|
|
+ output_77->dim[3] = 24;
|
|
|
+ output_77->dim_count = 4;
|
|
|
+ output_77->qinfo = (struct csinn_quant_info *)(params_base + 4727024);
|
|
|
+ output_77->quant_channel = 1;
|
|
|
+ struct csinn_transpose_params *params_77 = csinn_alloc_params(sizeof(struct csinn_transpose_params), sess);
|
|
|
+ params_77->permute = permute_77;
|
|
|
+ params_77->permute_num = 4;
|
|
|
+ params_77->base.name = "transpose_129";
|
|
|
+ csinn_transpose_init(output_76, output_77, params_77);
|
|
|
+ int32_t *shape_78 = malloc(2 * 4);
|
|
|
+ shape_78[0] = 1;
|
|
|
+ shape_78[1] = 600;
|
|
|
+ struct csinn_tensor *output_78 = csinn_alloc_tensor(sess);
|
|
|
+ output_78->name = "output_78";
|
|
|
+ output_78->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_78->layout = CSINN_LAYOUT_NC;
|
|
|
+ output_78->dim[0] = 1;
|
|
|
+ output_78->dim[1] = 600;
|
|
|
+ output_78->dim_count = 2;
|
|
|
+ output_78->qinfo = (struct csinn_quant_info *)(params_base + 4727048);
|
|
|
+ output_78->quant_channel = 1;
|
|
|
+ struct csinn_reshape_params *params_78 = csinn_alloc_params(sizeof(struct csinn_reshape_params), sess);
|
|
|
+ params_78->shape = shape_78;
|
|
|
+ params_78->shape_num = 2;
|
|
|
+ params_78->base.name = "batch_flatten_130";
|
|
|
+ csinn_reshape_init(output_77, output_78, params_78);
|
|
|
+ struct csinn_tensor *output_80 = csinn_alloc_tensor(sess);
|
|
|
+ output_80->name = "output_80";
|
|
|
+ output_80->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_80->layout = CSINN_LAYOUT_NC;
|
|
|
+ output_80->dim[0] = 1;
|
|
|
+ output_80->dim[1] = 600;
|
|
|
+ output_80->dim_count = 2;
|
|
|
+ output_80->qinfo = (struct csinn_quant_info *)(params_base + 4727072);
|
|
|
+ output_80->quant_channel = 1;
|
|
|
+ struct csinn_tensor *rhs_80 = csinn_alloc_tensor(sess);
|
|
|
+ rhs_80->name = "rhs_80";
|
|
|
+ rhs_80->data = params_base + 4727120;
|
|
|
+ rhs_80->is_const = 1;
|
|
|
+ rhs_80->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ rhs_80->layout = CSINN_LAYOUT_OI;
|
|
|
+ rhs_80->dim[0] = 1;
|
|
|
+ rhs_80->dim[1] = 600;
|
|
|
+ rhs_80->dim_count = 2;
|
|
|
+ rhs_80->qinfo = (struct csinn_quant_info *)(params_base + 4727096);
|
|
|
+ rhs_80->quant_channel = 1;
|
|
|
+ struct csinn_diso_params *params_80 = csinn_alloc_params(sizeof(struct csinn_diso_params), sess);
|
|
|
+ params_80->base.name = "mul_169";
|
|
|
+ csinn_mul_init(output_78, rhs_80, output_80, params_80);
|
|
|
+ struct csinn_tensor *output_82 = csinn_alloc_tensor(sess);
|
|
|
+ output_82->name = "output_82";
|
|
|
+ output_82->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_82->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_82->dim[0] = 1;
|
|
|
+ output_82->dim[1] = 128;
|
|
|
+ output_82->dim[2] = 5;
|
|
|
+ output_82->dim[3] = 5;
|
|
|
+ output_82->dim_count = 4;
|
|
|
+ output_82->qinfo = (struct csinn_quant_info *)(params_base + 4727720);
|
|
|
+ output_82->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_82 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_82->name = "kernel_82";
|
|
|
+ kernel_82->data = params_base + 4727768;
|
|
|
+ kernel_82->is_const = 1;
|
|
|
+ kernel_82->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_82->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_82->dim[0] = 128;
|
|
|
+ kernel_82->dim[1] = 512;
|
|
|
+ kernel_82->dim[2] = 1;
|
|
|
+ kernel_82->dim[3] = 1;
|
|
|
+ kernel_82->dim_count = 4;
|
|
|
+ kernel_82->qinfo = (struct csinn_quant_info *)(params_base + 4727744);
|
|
|
+ kernel_82->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_82 = csinn_alloc_tensor(sess);
|
|
|
+ bias_82->name = "bias_82";
|
|
|
+ bias_82->data = params_base + 4793328;
|
|
|
+ bias_82->is_const = 1;
|
|
|
+ bias_82->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_82->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_82->dim[0] = 128;
|
|
|
+ bias_82->dim_count = 1;
|
|
|
+ bias_82->qinfo = (struct csinn_quant_info *)(params_base + 4793304);
|
|
|
+ bias_82->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_82 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_82->group = 1;
|
|
|
+ params_82->stride_height = 1;
|
|
|
+ params_82->stride_width = 1;
|
|
|
+ params_82->dilation_height = 1;
|
|
|
+ params_82->dilation_width = 1;
|
|
|
+ params_82->conv_extra.kernel_tm = NULL;
|
|
|
+ params_82->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_82->pad_top = 0;
|
|
|
+ params_82->pad_left = 0;
|
|
|
+ params_82->pad_down = 0;
|
|
|
+ params_82->pad_right = 0;
|
|
|
+ params_82->base.name = "conv2d_131_fuse_multiply_132_fuse_add_133";
|
|
|
+ csinn_conv2d_init(output_75, output_82, kernel_82, bias_82, params_82);
|
|
|
+ struct csinn_tensor *output_83 = csinn_alloc_tensor(sess);
|
|
|
+ output_83->name = "output_83";
|
|
|
+ output_83->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_83->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_83->dim[0] = 1;
|
|
|
+ output_83->dim[1] = 128;
|
|
|
+ output_83->dim[2] = 5;
|
|
|
+ output_83->dim[3] = 5;
|
|
|
+ output_83->dim_count = 4;
|
|
|
+ output_83->qinfo = (struct csinn_quant_info *)(params_base + 4793840);
|
|
|
+ output_83->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_83 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_83->base.name = "relu_134";
|
|
|
+ csinn_relu_init(output_82, output_83, params_83);
|
|
|
+ struct csinn_tensor *output_84 = csinn_alloc_tensor(sess);
|
|
|
+ output_84->name = "output_84";
|
|
|
+ output_84->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_84->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_84->dim[0] = 1;
|
|
|
+ output_84->dim[1] = 256;
|
|
|
+ output_84->dim[2] = 3;
|
|
|
+ output_84->dim[3] = 3;
|
|
|
+ output_84->dim_count = 4;
|
|
|
+ output_84->qinfo = (struct csinn_quant_info *)(params_base + 4793864);
|
|
|
+ output_84->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_84 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_84->name = "kernel_84";
|
|
|
+ kernel_84->data = params_base + 4793912;
|
|
|
+ kernel_84->is_const = 1;
|
|
|
+ kernel_84->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_84->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_84->dim[0] = 256;
|
|
|
+ kernel_84->dim[1] = 128;
|
|
|
+ kernel_84->dim[2] = 3;
|
|
|
+ kernel_84->dim[3] = 3;
|
|
|
+ kernel_84->dim_count = 4;
|
|
|
+ kernel_84->qinfo = (struct csinn_quant_info *)(params_base + 4793888);
|
|
|
+ kernel_84->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_84 = csinn_alloc_tensor(sess);
|
|
|
+ bias_84->name = "bias_84";
|
|
|
+ bias_84->data = params_base + 5088848;
|
|
|
+ bias_84->is_const = 1;
|
|
|
+ bias_84->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_84->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_84->dim[0] = 256;
|
|
|
+ bias_84->dim_count = 1;
|
|
|
+ bias_84->qinfo = (struct csinn_quant_info *)(params_base + 5088824);
|
|
|
+ bias_84->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_84 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_84->group = 1;
|
|
|
+ params_84->stride_height = 2;
|
|
|
+ params_84->stride_width = 2;
|
|
|
+ params_84->dilation_height = 1;
|
|
|
+ params_84->dilation_width = 1;
|
|
|
+ params_84->conv_extra.kernel_tm = NULL;
|
|
|
+ params_84->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_84->pad_top = 1;
|
|
|
+ params_84->pad_left = 1;
|
|
|
+ params_84->pad_down = 1;
|
|
|
+ params_84->pad_right = 1;
|
|
|
+ params_84->base.name = "conv2d_135_fuse_multiply_136_fuse_add_137";
|
|
|
+ csinn_conv2d_init(output_83, output_84, kernel_84, bias_84, params_84);
|
|
|
+ struct csinn_tensor *output_85 = csinn_alloc_tensor(sess);
|
|
|
+ output_85->name = "output_85";
|
|
|
+ output_85->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_85->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_85->dim[0] = 1;
|
|
|
+ output_85->dim[1] = 256;
|
|
|
+ output_85->dim[2] = 3;
|
|
|
+ output_85->dim[3] = 3;
|
|
|
+ output_85->dim_count = 4;
|
|
|
+ output_85->qinfo = (struct csinn_quant_info *)(params_base + 5089872);
|
|
|
+ output_85->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_85 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_85->base.name = "relu_138";
|
|
|
+ csinn_relu_init(output_84, output_85, params_85);
|
|
|
+ struct csinn_tensor *output_86 = csinn_alloc_tensor(sess);
|
|
|
+ output_86->name = "output_86";
|
|
|
+ output_86->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_86->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_86->dim[0] = 1;
|
|
|
+ output_86->dim[1] = 24;
|
|
|
+ output_86->dim[2] = 3;
|
|
|
+ output_86->dim[3] = 3;
|
|
|
+ output_86->dim_count = 4;
|
|
|
+ output_86->qinfo = (struct csinn_quant_info *)(params_base + 5089896);
|
|
|
+ output_86->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_86 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_86->name = "kernel_86";
|
|
|
+ kernel_86->data = params_base + 5089944;
|
|
|
+ kernel_86->is_const = 1;
|
|
|
+ kernel_86->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_86->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_86->dim[0] = 24;
|
|
|
+ kernel_86->dim[1] = 256;
|
|
|
+ kernel_86->dim[2] = 1;
|
|
|
+ kernel_86->dim[3] = 1;
|
|
|
+ kernel_86->dim_count = 4;
|
|
|
+ kernel_86->qinfo = (struct csinn_quant_info *)(params_base + 5089920);
|
|
|
+ kernel_86->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_86 = csinn_alloc_tensor(sess);
|
|
|
+ bias_86->name = "bias_86";
|
|
|
+ bias_86->data = params_base + 5096112;
|
|
|
+ bias_86->is_const = 1;
|
|
|
+ bias_86->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_86->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_86->dim[0] = 24;
|
|
|
+ bias_86->dim_count = 1;
|
|
|
+ bias_86->qinfo = (struct csinn_quant_info *)(params_base + 5096088);
|
|
|
+ bias_86->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_86 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_86->group = 1;
|
|
|
+ params_86->stride_height = 1;
|
|
|
+ params_86->stride_width = 1;
|
|
|
+ params_86->dilation_height = 1;
|
|
|
+ params_86->dilation_width = 1;
|
|
|
+ params_86->conv_extra.kernel_tm = NULL;
|
|
|
+ params_86->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_86->pad_top = 0;
|
|
|
+ params_86->pad_left = 0;
|
|
|
+ params_86->pad_down = 0;
|
|
|
+ params_86->pad_right = 0;
|
|
|
+ params_86->base.name = "conv2d_139_fuse_bias_add_140";
|
|
|
+ csinn_conv2d_init(output_85, output_86, kernel_86, bias_86, params_86);
|
|
|
+ int32_t *permute_87 = malloc(4 * 4);
|
|
|
+ permute_87[0] = 0;
|
|
|
+ permute_87[1] = 2;
|
|
|
+ permute_87[2] = 3;
|
|
|
+ permute_87[3] = 1;
|
|
|
+ struct csinn_tensor *output_87 = csinn_alloc_tensor(sess);
|
|
|
+ output_87->name = "output_87";
|
|
|
+ output_87->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_87->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_87->dim[0] = 1;
|
|
|
+ output_87->dim[1] = 3;
|
|
|
+ output_87->dim[2] = 3;
|
|
|
+ output_87->dim[3] = 24;
|
|
|
+ output_87->dim_count = 4;
|
|
|
+ output_87->qinfo = (struct csinn_quant_info *)(params_base + 5096208);
|
|
|
+ output_87->quant_channel = 1;
|
|
|
+ struct csinn_transpose_params *params_87 = csinn_alloc_params(sizeof(struct csinn_transpose_params), sess);
|
|
|
+ params_87->permute = permute_87;
|
|
|
+ params_87->permute_num = 4;
|
|
|
+ params_87->base.name = "transpose_141";
|
|
|
+ csinn_transpose_init(output_86, output_87, params_87);
|
|
|
+ int32_t *shape_88 = malloc(2 * 4);
|
|
|
+ shape_88[0] = 1;
|
|
|
+ shape_88[1] = 216;
|
|
|
+ struct csinn_tensor *output_88 = csinn_alloc_tensor(sess);
|
|
|
+ output_88->name = "output_88";
|
|
|
+ output_88->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_88->layout = CSINN_LAYOUT_NC;
|
|
|
+ output_88->dim[0] = 1;
|
|
|
+ output_88->dim[1] = 216;
|
|
|
+ output_88->dim_count = 2;
|
|
|
+ output_88->qinfo = (struct csinn_quant_info *)(params_base + 5096232);
|
|
|
+ output_88->quant_channel = 1;
|
|
|
+ struct csinn_reshape_params *params_88 = csinn_alloc_params(sizeof(struct csinn_reshape_params), sess);
|
|
|
+ params_88->shape = shape_88;
|
|
|
+ params_88->shape_num = 2;
|
|
|
+ params_88->base.name = "batch_flatten_142";
|
|
|
+ csinn_reshape_init(output_87, output_88, params_88);
|
|
|
+ struct csinn_tensor *output_90 = csinn_alloc_tensor(sess);
|
|
|
+ output_90->name = "output_90";
|
|
|
+ output_90->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_90->layout = CSINN_LAYOUT_NC;
|
|
|
+ output_90->dim[0] = 1;
|
|
|
+ output_90->dim[1] = 216;
|
|
|
+ output_90->dim_count = 2;
|
|
|
+ output_90->qinfo = (struct csinn_quant_info *)(params_base + 5096256);
|
|
|
+ output_90->quant_channel = 1;
|
|
|
+ struct csinn_tensor *rhs_90 = csinn_alloc_tensor(sess);
|
|
|
+ rhs_90->name = "rhs_90";
|
|
|
+ rhs_90->data = params_base + 5096304;
|
|
|
+ rhs_90->is_const = 1;
|
|
|
+ rhs_90->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ rhs_90->layout = CSINN_LAYOUT_OI;
|
|
|
+ rhs_90->dim[0] = 1;
|
|
|
+ rhs_90->dim[1] = 216;
|
|
|
+ rhs_90->dim_count = 2;
|
|
|
+ rhs_90->qinfo = (struct csinn_quant_info *)(params_base + 5096280);
|
|
|
+ rhs_90->quant_channel = 1;
|
|
|
+ struct csinn_diso_params *params_90 = csinn_alloc_params(sizeof(struct csinn_diso_params), sess);
|
|
|
+ params_90->base.name = "mul_170";
|
|
|
+ csinn_mul_init(output_88, rhs_90, output_90, params_90);
|
|
|
+ struct csinn_tensor *output_92 = csinn_alloc_tensor(sess);
|
|
|
+ output_92->name = "output_92";
|
|
|
+ output_92->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_92->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_92->dim[0] = 1;
|
|
|
+ output_92->dim[1] = 128;
|
|
|
+ output_92->dim[2] = 3;
|
|
|
+ output_92->dim[3] = 3;
|
|
|
+ output_92->dim_count = 4;
|
|
|
+ output_92->qinfo = (struct csinn_quant_info *)(params_base + 5096520);
|
|
|
+ output_92->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_92 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_92->name = "kernel_92";
|
|
|
+ kernel_92->data = params_base + 5096568;
|
|
|
+ kernel_92->is_const = 1;
|
|
|
+ kernel_92->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_92->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_92->dim[0] = 128;
|
|
|
+ kernel_92->dim[1] = 256;
|
|
|
+ kernel_92->dim[2] = 1;
|
|
|
+ kernel_92->dim[3] = 1;
|
|
|
+ kernel_92->dim_count = 4;
|
|
|
+ kernel_92->qinfo = (struct csinn_quant_info *)(params_base + 5096544);
|
|
|
+ kernel_92->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_92 = csinn_alloc_tensor(sess);
|
|
|
+ bias_92->name = "bias_92";
|
|
|
+ bias_92->data = params_base + 5129360;
|
|
|
+ bias_92->is_const = 1;
|
|
|
+ bias_92->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_92->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_92->dim[0] = 128;
|
|
|
+ bias_92->dim_count = 1;
|
|
|
+ bias_92->qinfo = (struct csinn_quant_info *)(params_base + 5129336);
|
|
|
+ bias_92->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_92 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_92->group = 1;
|
|
|
+ params_92->stride_height = 1;
|
|
|
+ params_92->stride_width = 1;
|
|
|
+ params_92->dilation_height = 1;
|
|
|
+ params_92->dilation_width = 1;
|
|
|
+ params_92->conv_extra.kernel_tm = NULL;
|
|
|
+ params_92->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_92->pad_top = 0;
|
|
|
+ params_92->pad_left = 0;
|
|
|
+ params_92->pad_down = 0;
|
|
|
+ params_92->pad_right = 0;
|
|
|
+ params_92->base.name = "conv2d_143_fuse_multiply_144_fuse_add_145";
|
|
|
+ csinn_conv2d_init(output_85, output_92, kernel_92, bias_92, params_92);
|
|
|
+ struct csinn_tensor *output_93 = csinn_alloc_tensor(sess);
|
|
|
+ output_93->name = "output_93";
|
|
|
+ output_93->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_93->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_93->dim[0] = 1;
|
|
|
+ output_93->dim[1] = 128;
|
|
|
+ output_93->dim[2] = 3;
|
|
|
+ output_93->dim[3] = 3;
|
|
|
+ output_93->dim_count = 4;
|
|
|
+ output_93->qinfo = (struct csinn_quant_info *)(params_base + 5129872);
|
|
|
+ output_93->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_93 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_93->base.name = "relu_146";
|
|
|
+ csinn_relu_init(output_92, output_93, params_93);
|
|
|
+ struct csinn_tensor *output_94 = csinn_alloc_tensor(sess);
|
|
|
+ output_94->name = "output_94";
|
|
|
+ output_94->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_94->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_94->dim[0] = 1;
|
|
|
+ output_94->dim[1] = 256;
|
|
|
+ output_94->dim[2] = 2;
|
|
|
+ output_94->dim[3] = 2;
|
|
|
+ output_94->dim_count = 4;
|
|
|
+ output_94->qinfo = (struct csinn_quant_info *)(params_base + 5129896);
|
|
|
+ output_94->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_94 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_94->name = "kernel_94";
|
|
|
+ kernel_94->data = params_base + 5129944;
|
|
|
+ kernel_94->is_const = 1;
|
|
|
+ kernel_94->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_94->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_94->dim[0] = 256;
|
|
|
+ kernel_94->dim[1] = 128;
|
|
|
+ kernel_94->dim[2] = 3;
|
|
|
+ kernel_94->dim[3] = 3;
|
|
|
+ kernel_94->dim_count = 4;
|
|
|
+ kernel_94->qinfo = (struct csinn_quant_info *)(params_base + 5129920);
|
|
|
+ kernel_94->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_94 = csinn_alloc_tensor(sess);
|
|
|
+ bias_94->name = "bias_94";
|
|
|
+ bias_94->data = params_base + 5424880;
|
|
|
+ bias_94->is_const = 1;
|
|
|
+ bias_94->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_94->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_94->dim[0] = 256;
|
|
|
+ bias_94->dim_count = 1;
|
|
|
+ bias_94->qinfo = (struct csinn_quant_info *)(params_base + 5424856);
|
|
|
+ bias_94->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_94 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_94->group = 1;
|
|
|
+ params_94->stride_height = 2;
|
|
|
+ params_94->stride_width = 2;
|
|
|
+ params_94->dilation_height = 1;
|
|
|
+ params_94->dilation_width = 1;
|
|
|
+ params_94->conv_extra.kernel_tm = NULL;
|
|
|
+ params_94->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_94->pad_top = 1;
|
|
|
+ params_94->pad_left = 1;
|
|
|
+ params_94->pad_down = 1;
|
|
|
+ params_94->pad_right = 1;
|
|
|
+ params_94->base.name = "conv2d_147_fuse_multiply_148_fuse_add_149";
|
|
|
+ csinn_conv2d_init(output_93, output_94, kernel_94, bias_94, params_94);
|
|
|
+ struct csinn_tensor *output_95 = csinn_alloc_tensor(sess);
|
|
|
+ output_95->name = "output_95";
|
|
|
+ output_95->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_95->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_95->dim[0] = 1;
|
|
|
+ output_95->dim[1] = 256;
|
|
|
+ output_95->dim[2] = 2;
|
|
|
+ output_95->dim[3] = 2;
|
|
|
+ output_95->dim_count = 4;
|
|
|
+ output_95->qinfo = (struct csinn_quant_info *)(params_base + 5425904);
|
|
|
+ output_95->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_95 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_95->base.name = "relu_150";
|
|
|
+ csinn_relu_init(output_94, output_95, params_95);
|
|
|
+ struct csinn_tensor *output_96 = csinn_alloc_tensor(sess);
|
|
|
+ output_96->name = "output_96";
|
|
|
+ output_96->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_96->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_96->dim[0] = 1;
|
|
|
+ output_96->dim[1] = 24;
|
|
|
+ output_96->dim[2] = 2;
|
|
|
+ output_96->dim[3] = 2;
|
|
|
+ output_96->dim_count = 4;
|
|
|
+ output_96->qinfo = (struct csinn_quant_info *)(params_base + 5425928);
|
|
|
+ output_96->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_96 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_96->name = "kernel_96";
|
|
|
+ kernel_96->data = params_base + 5425976;
|
|
|
+ kernel_96->is_const = 1;
|
|
|
+ kernel_96->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_96->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_96->dim[0] = 24;
|
|
|
+ kernel_96->dim[1] = 256;
|
|
|
+ kernel_96->dim[2] = 1;
|
|
|
+ kernel_96->dim[3] = 1;
|
|
|
+ kernel_96->dim_count = 4;
|
|
|
+ kernel_96->qinfo = (struct csinn_quant_info *)(params_base + 5425952);
|
|
|
+ kernel_96->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_96 = csinn_alloc_tensor(sess);
|
|
|
+ bias_96->name = "bias_96";
|
|
|
+ bias_96->data = params_base + 5432144;
|
|
|
+ bias_96->is_const = 1;
|
|
|
+ bias_96->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_96->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_96->dim[0] = 24;
|
|
|
+ bias_96->dim_count = 1;
|
|
|
+ bias_96->qinfo = (struct csinn_quant_info *)(params_base + 5432120);
|
|
|
+ bias_96->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_96 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_96->group = 1;
|
|
|
+ params_96->stride_height = 1;
|
|
|
+ params_96->stride_width = 1;
|
|
|
+ params_96->dilation_height = 1;
|
|
|
+ params_96->dilation_width = 1;
|
|
|
+ params_96->conv_extra.kernel_tm = NULL;
|
|
|
+ params_96->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_96->pad_top = 0;
|
|
|
+ params_96->pad_left = 0;
|
|
|
+ params_96->pad_down = 0;
|
|
|
+ params_96->pad_right = 0;
|
|
|
+ params_96->base.name = "conv2d_151_fuse_bias_add_152";
|
|
|
+ csinn_conv2d_init(output_95, output_96, kernel_96, bias_96, params_96);
|
|
|
+ int32_t *permute_97 = malloc(4 * 4);
|
|
|
+ permute_97[0] = 0;
|
|
|
+ permute_97[1] = 2;
|
|
|
+ permute_97[2] = 3;
|
|
|
+ permute_97[3] = 1;
|
|
|
+ struct csinn_tensor *output_97 = csinn_alloc_tensor(sess);
|
|
|
+ output_97->name = "output_97";
|
|
|
+ output_97->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_97->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_97->dim[0] = 1;
|
|
|
+ output_97->dim[1] = 2;
|
|
|
+ output_97->dim[2] = 2;
|
|
|
+ output_97->dim[3] = 24;
|
|
|
+ output_97->dim_count = 4;
|
|
|
+ output_97->qinfo = (struct csinn_quant_info *)(params_base + 5432240);
|
|
|
+ output_97->quant_channel = 1;
|
|
|
+ struct csinn_transpose_params *params_97 = csinn_alloc_params(sizeof(struct csinn_transpose_params), sess);
|
|
|
+ params_97->permute = permute_97;
|
|
|
+ params_97->permute_num = 4;
|
|
|
+ params_97->base.name = "transpose_153";
|
|
|
+ csinn_transpose_init(output_96, output_97, params_97);
|
|
|
+ int32_t *shape_98 = malloc(2 * 4);
|
|
|
+ shape_98[0] = 1;
|
|
|
+ shape_98[1] = 96;
|
|
|
+ struct csinn_tensor *output_98 = csinn_alloc_tensor(sess);
|
|
|
+ output_98->name = "output_98";
|
|
|
+ output_98->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_98->layout = CSINN_LAYOUT_NC;
|
|
|
+ output_98->dim[0] = 1;
|
|
|
+ output_98->dim[1] = 96;
|
|
|
+ output_98->dim_count = 2;
|
|
|
+ output_98->qinfo = (struct csinn_quant_info *)(params_base + 5432264);
|
|
|
+ output_98->quant_channel = 1;
|
|
|
+ struct csinn_reshape_params *params_98 = csinn_alloc_params(sizeof(struct csinn_reshape_params), sess);
|
|
|
+ params_98->shape = shape_98;
|
|
|
+ params_98->shape_num = 2;
|
|
|
+ params_98->base.name = "batch_flatten_154";
|
|
|
+ csinn_reshape_init(output_97, output_98, params_98);
|
|
|
+ struct csinn_tensor *output_100 = csinn_alloc_tensor(sess);
|
|
|
+ output_100->name = "output_100";
|
|
|
+ output_100->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_100->layout = CSINN_LAYOUT_NC;
|
|
|
+ output_100->dim[0] = 1;
|
|
|
+ output_100->dim[1] = 96;
|
|
|
+ output_100->dim_count = 2;
|
|
|
+ output_100->qinfo = (struct csinn_quant_info *)(params_base + 5432288);
|
|
|
+ output_100->quant_channel = 1;
|
|
|
+ struct csinn_tensor *rhs_100 = csinn_alloc_tensor(sess);
|
|
|
+ rhs_100->name = "rhs_100";
|
|
|
+ rhs_100->data = params_base + 5432336;
|
|
|
+ rhs_100->is_const = 1;
|
|
|
+ rhs_100->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ rhs_100->layout = CSINN_LAYOUT_OI;
|
|
|
+ rhs_100->dim[0] = 1;
|
|
|
+ rhs_100->dim[1] = 96;
|
|
|
+ rhs_100->dim_count = 2;
|
|
|
+ rhs_100->qinfo = (struct csinn_quant_info *)(params_base + 5432312);
|
|
|
+ rhs_100->quant_channel = 1;
|
|
|
+ struct csinn_diso_params *params_100 = csinn_alloc_params(sizeof(struct csinn_diso_params), sess);
|
|
|
+ params_100->base.name = "mul_171";
|
|
|
+ csinn_mul_init(output_98, rhs_100, output_100, params_100);
|
|
|
+ struct csinn_tensor *output_102 = csinn_alloc_tensor(sess);
|
|
|
+ output_102->name = "output_102";
|
|
|
+ output_102->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_102->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_102->dim[0] = 1;
|
|
|
+ output_102->dim[1] = 64;
|
|
|
+ output_102->dim[2] = 2;
|
|
|
+ output_102->dim[3] = 2;
|
|
|
+ output_102->dim_count = 4;
|
|
|
+ output_102->qinfo = (struct csinn_quant_info *)(params_base + 5432432);
|
|
|
+ output_102->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_102 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_102->name = "kernel_102";
|
|
|
+ kernel_102->data = params_base + 5432480;
|
|
|
+ kernel_102->is_const = 1;
|
|
|
+ kernel_102->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_102->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_102->dim[0] = 64;
|
|
|
+ kernel_102->dim[1] = 256;
|
|
|
+ kernel_102->dim[2] = 1;
|
|
|
+ kernel_102->dim[3] = 1;
|
|
|
+ kernel_102->dim_count = 4;
|
|
|
+ kernel_102->qinfo = (struct csinn_quant_info *)(params_base + 5432456);
|
|
|
+ kernel_102->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_102 = csinn_alloc_tensor(sess);
|
|
|
+ bias_102->name = "bias_102";
|
|
|
+ bias_102->data = params_base + 5448888;
|
|
|
+ bias_102->is_const = 1;
|
|
|
+ bias_102->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_102->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_102->dim[0] = 64;
|
|
|
+ bias_102->dim_count = 1;
|
|
|
+ bias_102->qinfo = (struct csinn_quant_info *)(params_base + 5448864);
|
|
|
+ bias_102->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_102 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_102->group = 1;
|
|
|
+ params_102->stride_height = 1;
|
|
|
+ params_102->stride_width = 1;
|
|
|
+ params_102->dilation_height = 1;
|
|
|
+ params_102->dilation_width = 1;
|
|
|
+ params_102->conv_extra.kernel_tm = NULL;
|
|
|
+ params_102->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_102->pad_top = 0;
|
|
|
+ params_102->pad_left = 0;
|
|
|
+ params_102->pad_down = 0;
|
|
|
+ params_102->pad_right = 0;
|
|
|
+ params_102->base.name = "conv2d_155_fuse_multiply_156_fuse_add_157";
|
|
|
+ csinn_conv2d_init(output_95, output_102, kernel_102, bias_102, params_102);
|
|
|
+ struct csinn_tensor *output_103 = csinn_alloc_tensor(sess);
|
|
|
+ output_103->name = "output_103";
|
|
|
+ output_103->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_103->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_103->dim[0] = 1;
|
|
|
+ output_103->dim[1] = 64;
|
|
|
+ output_103->dim[2] = 2;
|
|
|
+ output_103->dim[3] = 2;
|
|
|
+ output_103->dim_count = 4;
|
|
|
+ output_103->qinfo = (struct csinn_quant_info *)(params_base + 5449144);
|
|
|
+ output_103->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_103 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_103->base.name = "relu_158";
|
|
|
+ csinn_relu_init(output_102, output_103, params_103);
|
|
|
+ struct csinn_tensor *output_104 = csinn_alloc_tensor(sess);
|
|
|
+ output_104->name = "output_104";
|
|
|
+ output_104->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_104->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_104->dim[0] = 1;
|
|
|
+ output_104->dim[1] = 128;
|
|
|
+ output_104->dim[2] = 1;
|
|
|
+ output_104->dim[3] = 1;
|
|
|
+ output_104->dim_count = 4;
|
|
|
+ output_104->qinfo = (struct csinn_quant_info *)(params_base + 5449168);
|
|
|
+ output_104->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_104 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_104->name = "kernel_104";
|
|
|
+ kernel_104->data = params_base + 5449216;
|
|
|
+ kernel_104->is_const = 1;
|
|
|
+ kernel_104->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_104->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_104->dim[0] = 128;
|
|
|
+ kernel_104->dim[1] = 64;
|
|
|
+ kernel_104->dim[2] = 3;
|
|
|
+ kernel_104->dim[3] = 3;
|
|
|
+ kernel_104->dim_count = 4;
|
|
|
+ kernel_104->qinfo = (struct csinn_quant_info *)(params_base + 5449192);
|
|
|
+ kernel_104->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_104 = csinn_alloc_tensor(sess);
|
|
|
+ bias_104->name = "bias_104";
|
|
|
+ bias_104->data = params_base + 5522968;
|
|
|
+ bias_104->is_const = 1;
|
|
|
+ bias_104->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_104->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_104->dim[0] = 128;
|
|
|
+ bias_104->dim_count = 1;
|
|
|
+ bias_104->qinfo = (struct csinn_quant_info *)(params_base + 5522944);
|
|
|
+ bias_104->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_104 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_104->group = 1;
|
|
|
+ params_104->stride_height = 2;
|
|
|
+ params_104->stride_width = 2;
|
|
|
+ params_104->dilation_height = 1;
|
|
|
+ params_104->dilation_width = 1;
|
|
|
+ params_104->conv_extra.kernel_tm = NULL;
|
|
|
+ params_104->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_104->pad_top = 1;
|
|
|
+ params_104->pad_left = 1;
|
|
|
+ params_104->pad_down = 1;
|
|
|
+ params_104->pad_right = 1;
|
|
|
+ params_104->base.name = "conv2d_159_fuse_multiply_160_fuse_add_161";
|
|
|
+ csinn_conv2d_init(output_103, output_104, kernel_104, bias_104, params_104);
|
|
|
+ struct csinn_tensor *output_105 = csinn_alloc_tensor(sess);
|
|
|
+ output_105->name = "output_105";
|
|
|
+ output_105->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_105->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_105->dim[0] = 1;
|
|
|
+ output_105->dim[1] = 128;
|
|
|
+ output_105->dim[2] = 1;
|
|
|
+ output_105->dim[3] = 1;
|
|
|
+ output_105->dim_count = 4;
|
|
|
+ output_105->qinfo = (struct csinn_quant_info *)(params_base + 5523480);
|
|
|
+ output_105->quant_channel = 1;
|
|
|
+ struct csinn_relu_params *params_105 = csinn_alloc_params(sizeof(struct csinn_relu_params), sess);
|
|
|
+ params_105->base.name = "relu_162";
|
|
|
+ csinn_relu_init(output_104, output_105, params_105);
|
|
|
+ struct csinn_tensor *output_106 = csinn_alloc_tensor(sess);
|
|
|
+ output_106->name = "output_106";
|
|
|
+ output_106->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_106->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_106->dim[0] = 1;
|
|
|
+ output_106->dim[1] = 24;
|
|
|
+ output_106->dim[2] = 1;
|
|
|
+ output_106->dim[3] = 1;
|
|
|
+ output_106->dim_count = 4;
|
|
|
+ output_106->qinfo = (struct csinn_quant_info *)(params_base + 5523504);
|
|
|
+ output_106->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_106 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_106->name = "kernel_106";
|
|
|
+ kernel_106->data = params_base + 5523552;
|
|
|
+ kernel_106->is_const = 1;
|
|
|
+ kernel_106->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_106->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_106->dim[0] = 24;
|
|
|
+ kernel_106->dim[1] = 128;
|
|
|
+ kernel_106->dim[2] = 1;
|
|
|
+ kernel_106->dim[3] = 1;
|
|
|
+ kernel_106->dim_count = 4;
|
|
|
+ kernel_106->qinfo = (struct csinn_quant_info *)(params_base + 5523528);
|
|
|
+ kernel_106->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_106 = csinn_alloc_tensor(sess);
|
|
|
+ bias_106->name = "bias_106";
|
|
|
+ bias_106->data = params_base + 5526648;
|
|
|
+ bias_106->is_const = 1;
|
|
|
+ bias_106->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_106->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_106->dim[0] = 24;
|
|
|
+ bias_106->dim_count = 1;
|
|
|
+ bias_106->qinfo = (struct csinn_quant_info *)(params_base + 5526624);
|
|
|
+ bias_106->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_106 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_106->group = 1;
|
|
|
+ params_106->stride_height = 1;
|
|
|
+ params_106->stride_width = 1;
|
|
|
+ params_106->dilation_height = 1;
|
|
|
+ params_106->dilation_width = 1;
|
|
|
+ params_106->conv_extra.kernel_tm = NULL;
|
|
|
+ params_106->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_106->pad_top = 0;
|
|
|
+ params_106->pad_left = 0;
|
|
|
+ params_106->pad_down = 0;
|
|
|
+ params_106->pad_right = 0;
|
|
|
+ params_106->base.name = "conv2d_163_fuse_bias_add_164";
|
|
|
+ csinn_conv2d_init(output_105, output_106, kernel_106, bias_106, params_106);
|
|
|
+ int32_t *permute_107 = malloc(4 * 4);
|
|
|
+ permute_107[0] = 0;
|
|
|
+ permute_107[1] = 2;
|
|
|
+ permute_107[2] = 3;
|
|
|
+ permute_107[3] = 1;
|
|
|
+ struct csinn_tensor *output_107 = csinn_alloc_tensor(sess);
|
|
|
+ output_107->name = "output_107";
|
|
|
+ output_107->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_107->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_107->dim[0] = 1;
|
|
|
+ output_107->dim[1] = 1;
|
|
|
+ output_107->dim[2] = 1;
|
|
|
+ output_107->dim[3] = 24;
|
|
|
+ output_107->dim_count = 4;
|
|
|
+ output_107->qinfo = (struct csinn_quant_info *)(params_base + 5526744);
|
|
|
+ output_107->quant_channel = 1;
|
|
|
+ struct csinn_transpose_params *params_107 = csinn_alloc_params(sizeof(struct csinn_transpose_params), sess);
|
|
|
+ params_107->permute = permute_107;
|
|
|
+ params_107->permute_num = 4;
|
|
|
+ params_107->base.name = "transpose_165";
|
|
|
+ csinn_transpose_init(output_106, output_107, params_107);
|
|
|
+ int32_t *shape_108 = malloc(2 * 4);
|
|
|
+ shape_108[0] = 1;
|
|
|
+ shape_108[1] = 24;
|
|
|
+ struct csinn_tensor *output_108 = csinn_alloc_tensor(sess);
|
|
|
+ output_108->name = "output_108";
|
|
|
+ output_108->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_108->layout = CSINN_LAYOUT_NC;
|
|
|
+ output_108->dim[0] = 1;
|
|
|
+ output_108->dim[1] = 24;
|
|
|
+ output_108->dim_count = 2;
|
|
|
+ output_108->qinfo = (struct csinn_quant_info *)(params_base + 5526768);
|
|
|
+ output_108->quant_channel = 1;
|
|
|
+ struct csinn_reshape_params *params_108 = csinn_alloc_params(sizeof(struct csinn_reshape_params), sess);
|
|
|
+ params_108->shape = shape_108;
|
|
|
+ params_108->shape_num = 2;
|
|
|
+ params_108->base.name = "batch_flatten_166";
|
|
|
+ csinn_reshape_init(output_107, output_108, params_108);
|
|
|
+ struct csinn_tensor *output_110 = csinn_alloc_tensor(sess);
|
|
|
+ output_110->name = "output_110";
|
|
|
+ output_110->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_110->layout = CSINN_LAYOUT_NC;
|
|
|
+ output_110->dim[0] = 1;
|
|
|
+ output_110->dim[1] = 24;
|
|
|
+ output_110->dim_count = 2;
|
|
|
+ output_110->qinfo = (struct csinn_quant_info *)(params_base + 5526792);
|
|
|
+ output_110->quant_channel = 1;
|
|
|
+ struct csinn_tensor *rhs_110 = csinn_alloc_tensor(sess);
|
|
|
+ rhs_110->name = "rhs_110";
|
|
|
+ rhs_110->data = params_base + 5526840;
|
|
|
+ rhs_110->is_const = 1;
|
|
|
+ rhs_110->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ rhs_110->layout = CSINN_LAYOUT_OI;
|
|
|
+ rhs_110->dim[0] = 1;
|
|
|
+ rhs_110->dim[1] = 24;
|
|
|
+ rhs_110->dim_count = 2;
|
|
|
+ rhs_110->qinfo = (struct csinn_quant_info *)(params_base + 5526816);
|
|
|
+ rhs_110->quant_channel = 1;
|
|
|
+ struct csinn_diso_params *params_110 = csinn_alloc_params(sizeof(struct csinn_diso_params), sess);
|
|
|
+ params_110->base.name = "mul_172";
|
|
|
+ csinn_mul_init(output_108, rhs_110, output_110, params_110);
|
|
|
+ struct csinn_tensor *input_112[6];
|
|
|
+ struct csinn_tensor *output_112 = csinn_alloc_tensor(sess);
|
|
|
+ output_112->name = "concatenate_167_112";
|
|
|
+ output_112->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_112->layout = CSINN_LAYOUT_NC;
|
|
|
+ output_112->dim[0] = 1;
|
|
|
+ output_112->dim[1] = 7668;
|
|
|
+ output_112->dim_count = 2;
|
|
|
+ output_112->qinfo = (struct csinn_quant_info *)(params_base + 5526864);
|
|
|
+ output_112->quant_channel = 1;
|
|
|
+ struct csinn_concat_params *params_112 = csinn_alloc_params(sizeof(struct csinn_concat_params), sess);
|
|
|
+ params_112->inputs_count = 6;
|
|
|
+ params_112->axis = 1;
|
|
|
+ params_112->base.name = "concatenate_167";
|
|
|
+ csinn_concat_init(input_112, output_112, params_112);
|
|
|
+ struct csinn_tensor *output_113 = csinn_alloc_tensor(sess);
|
|
|
+ output_113->name = "output_113";
|
|
|
+ output_113->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_113->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_113->dim[0] = 1;
|
|
|
+ output_113->dim[1] = 63;
|
|
|
+ output_113->dim[2] = 19;
|
|
|
+ output_113->dim[3] = 19;
|
|
|
+ output_113->dim_count = 4;
|
|
|
+ output_113->qinfo = (struct csinn_quant_info *)(params_base + 5526888);
|
|
|
+ output_113->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_113 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_113->name = "kernel_113";
|
|
|
+ kernel_113->data = params_base + 5526936;
|
|
|
+ kernel_113->is_const = 1;
|
|
|
+ kernel_113->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_113->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_113->dim[0] = 63;
|
|
|
+ kernel_113->dim[1] = 512;
|
|
|
+ kernel_113->dim[2] = 1;
|
|
|
+ kernel_113->dim[3] = 1;
|
|
|
+ kernel_113->dim_count = 4;
|
|
|
+ kernel_113->qinfo = (struct csinn_quant_info *)(params_base + 5526912);
|
|
|
+ kernel_113->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_113 = csinn_alloc_tensor(sess);
|
|
|
+ bias_113->name = "bias_113";
|
|
|
+ bias_113->data = params_base + 5559216;
|
|
|
+ bias_113->is_const = 1;
|
|
|
+ bias_113->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_113->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_113->dim[0] = 63;
|
|
|
+ bias_113->dim_count = 1;
|
|
|
+ bias_113->qinfo = (struct csinn_quant_info *)(params_base + 5559192);
|
|
|
+ bias_113->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_113 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_113->group = 1;
|
|
|
+ params_113->stride_height = 1;
|
|
|
+ params_113->stride_width = 1;
|
|
|
+ params_113->dilation_height = 1;
|
|
|
+ params_113->dilation_width = 1;
|
|
|
+ params_113->conv_extra.kernel_tm = NULL;
|
|
|
+ params_113->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_113->pad_top = 0;
|
|
|
+ params_113->pad_left = 0;
|
|
|
+ params_113->pad_down = 0;
|
|
|
+ params_113->pad_right = 0;
|
|
|
+ params_113->base.name = "conv2d_168_fuse_bias_add_169";
|
|
|
+ csinn_conv2d_init(output_51, output_113, kernel_113, bias_113, params_113);
|
|
|
+ int32_t *permute_114 = malloc(4 * 4);
|
|
|
+ permute_114[0] = 0;
|
|
|
+ permute_114[1] = 2;
|
|
|
+ permute_114[2] = 3;
|
|
|
+ permute_114[3] = 1;
|
|
|
+ struct csinn_tensor *output_114 = csinn_alloc_tensor(sess);
|
|
|
+ output_114->name = "output_114";
|
|
|
+ output_114->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_114->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_114->dim[0] = 1;
|
|
|
+ output_114->dim[1] = 19;
|
|
|
+ output_114->dim[2] = 19;
|
|
|
+ output_114->dim[3] = 63;
|
|
|
+ output_114->dim_count = 4;
|
|
|
+ output_114->qinfo = (struct csinn_quant_info *)(params_base + 5559468);
|
|
|
+ output_114->quant_channel = 1;
|
|
|
+ struct csinn_transpose_params *params_114 = csinn_alloc_params(sizeof(struct csinn_transpose_params), sess);
|
|
|
+ params_114->permute = permute_114;
|
|
|
+ params_114->permute_num = 4;
|
|
|
+ params_114->base.name = "transpose_170";
|
|
|
+ csinn_transpose_init(output_113, output_114, params_114);
|
|
|
+ int32_t *shape_115 = malloc(2 * 4);
|
|
|
+ shape_115[0] = 1;
|
|
|
+ shape_115[1] = 22743;
|
|
|
+ struct csinn_tensor *output_115 = csinn_alloc_tensor(sess);
|
|
|
+ output_115->name = "output_115";
|
|
|
+ output_115->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_115->layout = CSINN_LAYOUT_NC;
|
|
|
+ output_115->dim[0] = 1;
|
|
|
+ output_115->dim[1] = 22743;
|
|
|
+ output_115->dim_count = 2;
|
|
|
+ output_115->qinfo = (struct csinn_quant_info *)(params_base + 5559492);
|
|
|
+ output_115->quant_channel = 1;
|
|
|
+ struct csinn_reshape_params *params_115 = csinn_alloc_params(sizeof(struct csinn_reshape_params), sess);
|
|
|
+ params_115->shape = shape_115;
|
|
|
+ params_115->shape_num = 2;
|
|
|
+ params_115->base.name = "batch_flatten_171";
|
|
|
+ csinn_reshape_init(output_114, output_115, params_115);
|
|
|
+ struct csinn_tensor *output_117 = csinn_alloc_tensor(sess);
|
|
|
+ output_117->name = "output_117";
|
|
|
+ output_117->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_117->layout = CSINN_LAYOUT_NC;
|
|
|
+ output_117->dim[0] = 1;
|
|
|
+ output_117->dim[1] = 22743;
|
|
|
+ output_117->dim_count = 2;
|
|
|
+ output_117->qinfo = (struct csinn_quant_info *)(params_base + 5559516);
|
|
|
+ output_117->quant_channel = 1;
|
|
|
+ struct csinn_tensor *rhs_117 = csinn_alloc_tensor(sess);
|
|
|
+ rhs_117->name = "rhs_117";
|
|
|
+ rhs_117->data = params_base + 5559564;
|
|
|
+ rhs_117->is_const = 1;
|
|
|
+ rhs_117->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ rhs_117->layout = CSINN_LAYOUT_OI;
|
|
|
+ rhs_117->dim[0] = 1;
|
|
|
+ rhs_117->dim[1] = 22743;
|
|
|
+ rhs_117->dim_count = 2;
|
|
|
+ rhs_117->qinfo = (struct csinn_quant_info *)(params_base + 5559540);
|
|
|
+ rhs_117->quant_channel = 1;
|
|
|
+ struct csinn_diso_params *params_117 = csinn_alloc_params(sizeof(struct csinn_diso_params), sess);
|
|
|
+ params_117->base.name = "mul_173";
|
|
|
+ csinn_mul_init(output_115, rhs_117, output_117, params_117);
|
|
|
+ struct csinn_tensor *output_119 = csinn_alloc_tensor(sess);
|
|
|
+ output_119->name = "output_119";
|
|
|
+ output_119->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_119->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_119->dim[0] = 1;
|
|
|
+ output_119->dim[1] = 126;
|
|
|
+ output_119->dim[2] = 10;
|
|
|
+ output_119->dim[3] = 10;
|
|
|
+ output_119->dim_count = 4;
|
|
|
+ output_119->qinfo = (struct csinn_quant_info *)(params_base + 5582307);
|
|
|
+ output_119->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_119 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_119->name = "kernel_119";
|
|
|
+ kernel_119->data = params_base + 5582355;
|
|
|
+ kernel_119->is_const = 1;
|
|
|
+ kernel_119->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_119->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_119->dim[0] = 126;
|
|
|
+ kernel_119->dim[1] = 1024;
|
|
|
+ kernel_119->dim[2] = 1;
|
|
|
+ kernel_119->dim[3] = 1;
|
|
|
+ kernel_119->dim_count = 4;
|
|
|
+ kernel_119->qinfo = (struct csinn_quant_info *)(params_base + 5582331);
|
|
|
+ kernel_119->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_119 = csinn_alloc_tensor(sess);
|
|
|
+ bias_119->name = "bias_119";
|
|
|
+ bias_119->data = params_base + 5711403;
|
|
|
+ bias_119->is_const = 1;
|
|
|
+ bias_119->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_119->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_119->dim[0] = 126;
|
|
|
+ bias_119->dim_count = 1;
|
|
|
+ bias_119->qinfo = (struct csinn_quant_info *)(params_base + 5711379);
|
|
|
+ bias_119->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_119 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_119->group = 1;
|
|
|
+ params_119->stride_height = 1;
|
|
|
+ params_119->stride_width = 1;
|
|
|
+ params_119->dilation_height = 1;
|
|
|
+ params_119->dilation_width = 1;
|
|
|
+ params_119->conv_extra.kernel_tm = NULL;
|
|
|
+ params_119->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_119->pad_top = 0;
|
|
|
+ params_119->pad_left = 0;
|
|
|
+ params_119->pad_down = 0;
|
|
|
+ params_119->pad_right = 0;
|
|
|
+ params_119->base.name = "conv2d_172_fuse_bias_add_173";
|
|
|
+ csinn_conv2d_init(output_65, output_119, kernel_119, bias_119, params_119);
|
|
|
+ int32_t *permute_120 = malloc(4 * 4);
|
|
|
+ permute_120[0] = 0;
|
|
|
+ permute_120[1] = 2;
|
|
|
+ permute_120[2] = 3;
|
|
|
+ permute_120[3] = 1;
|
|
|
+ struct csinn_tensor *output_120 = csinn_alloc_tensor(sess);
|
|
|
+ output_120->name = "output_120";
|
|
|
+ output_120->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_120->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_120->dim[0] = 1;
|
|
|
+ output_120->dim[1] = 10;
|
|
|
+ output_120->dim[2] = 10;
|
|
|
+ output_120->dim[3] = 126;
|
|
|
+ output_120->dim_count = 4;
|
|
|
+ output_120->qinfo = (struct csinn_quant_info *)(params_base + 5711907);
|
|
|
+ output_120->quant_channel = 1;
|
|
|
+ struct csinn_transpose_params *params_120 = csinn_alloc_params(sizeof(struct csinn_transpose_params), sess);
|
|
|
+ params_120->permute = permute_120;
|
|
|
+ params_120->permute_num = 4;
|
|
|
+ params_120->base.name = "transpose_174";
|
|
|
+ csinn_transpose_init(output_119, output_120, params_120);
|
|
|
+ int32_t *shape_121 = malloc(2 * 4);
|
|
|
+ shape_121[0] = 1;
|
|
|
+ shape_121[1] = 12600;
|
|
|
+ struct csinn_tensor *output_121 = csinn_alloc_tensor(sess);
|
|
|
+ output_121->name = "output_121";
|
|
|
+ output_121->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_121->layout = CSINN_LAYOUT_NC;
|
|
|
+ output_121->dim[0] = 1;
|
|
|
+ output_121->dim[1] = 12600;
|
|
|
+ output_121->dim_count = 2;
|
|
|
+ output_121->qinfo = (struct csinn_quant_info *)(params_base + 5711931);
|
|
|
+ output_121->quant_channel = 1;
|
|
|
+ struct csinn_reshape_params *params_121 = csinn_alloc_params(sizeof(struct csinn_reshape_params), sess);
|
|
|
+ params_121->shape = shape_121;
|
|
|
+ params_121->shape_num = 2;
|
|
|
+ params_121->base.name = "batch_flatten_175";
|
|
|
+ csinn_reshape_init(output_120, output_121, params_121);
|
|
|
+ struct csinn_tensor *output_123 = csinn_alloc_tensor(sess);
|
|
|
+ output_123->name = "output_123";
|
|
|
+ output_123->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_123->layout = CSINN_LAYOUT_NC;
|
|
|
+ output_123->dim[0] = 1;
|
|
|
+ output_123->dim[1] = 12600;
|
|
|
+ output_123->dim_count = 2;
|
|
|
+ output_123->qinfo = (struct csinn_quant_info *)(params_base + 5711955);
|
|
|
+ output_123->quant_channel = 1;
|
|
|
+ struct csinn_tensor *rhs_123 = csinn_alloc_tensor(sess);
|
|
|
+ rhs_123->name = "rhs_123";
|
|
|
+ rhs_123->data = params_base + 5712003;
|
|
|
+ rhs_123->is_const = 1;
|
|
|
+ rhs_123->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ rhs_123->layout = CSINN_LAYOUT_OI;
|
|
|
+ rhs_123->dim[0] = 1;
|
|
|
+ rhs_123->dim[1] = 12600;
|
|
|
+ rhs_123->dim_count = 2;
|
|
|
+ rhs_123->qinfo = (struct csinn_quant_info *)(params_base + 5711979);
|
|
|
+ rhs_123->quant_channel = 1;
|
|
|
+ struct csinn_diso_params *params_123 = csinn_alloc_params(sizeof(struct csinn_diso_params), sess);
|
|
|
+ params_123->base.name = "mul_174";
|
|
|
+ csinn_mul_init(output_121, rhs_123, output_123, params_123);
|
|
|
+ struct csinn_tensor *output_125 = csinn_alloc_tensor(sess);
|
|
|
+ output_125->name = "output_125";
|
|
|
+ output_125->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_125->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_125->dim[0] = 1;
|
|
|
+ output_125->dim[1] = 126;
|
|
|
+ output_125->dim[2] = 5;
|
|
|
+ output_125->dim[3] = 5;
|
|
|
+ output_125->dim_count = 4;
|
|
|
+ output_125->qinfo = (struct csinn_quant_info *)(params_base + 5724603);
|
|
|
+ output_125->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_125 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_125->name = "kernel_125";
|
|
|
+ kernel_125->data = params_base + 5724651;
|
|
|
+ kernel_125->is_const = 1;
|
|
|
+ kernel_125->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_125->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_125->dim[0] = 126;
|
|
|
+ kernel_125->dim[1] = 512;
|
|
|
+ kernel_125->dim[2] = 1;
|
|
|
+ kernel_125->dim[3] = 1;
|
|
|
+ kernel_125->dim_count = 4;
|
|
|
+ kernel_125->qinfo = (struct csinn_quant_info *)(params_base + 5724627);
|
|
|
+ kernel_125->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_125 = csinn_alloc_tensor(sess);
|
|
|
+ bias_125->name = "bias_125";
|
|
|
+ bias_125->data = params_base + 5789187;
|
|
|
+ bias_125->is_const = 1;
|
|
|
+ bias_125->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_125->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_125->dim[0] = 126;
|
|
|
+ bias_125->dim_count = 1;
|
|
|
+ bias_125->qinfo = (struct csinn_quant_info *)(params_base + 5789163);
|
|
|
+ bias_125->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_125 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_125->group = 1;
|
|
|
+ params_125->stride_height = 1;
|
|
|
+ params_125->stride_width = 1;
|
|
|
+ params_125->dilation_height = 1;
|
|
|
+ params_125->dilation_width = 1;
|
|
|
+ params_125->conv_extra.kernel_tm = NULL;
|
|
|
+ params_125->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_125->pad_top = 0;
|
|
|
+ params_125->pad_left = 0;
|
|
|
+ params_125->pad_down = 0;
|
|
|
+ params_125->pad_right = 0;
|
|
|
+ params_125->base.name = "conv2d_176_fuse_bias_add_177";
|
|
|
+ csinn_conv2d_init(output_75, output_125, kernel_125, bias_125, params_125);
|
|
|
+ int32_t *permute_126 = malloc(4 * 4);
|
|
|
+ permute_126[0] = 0;
|
|
|
+ permute_126[1] = 2;
|
|
|
+ permute_126[2] = 3;
|
|
|
+ permute_126[3] = 1;
|
|
|
+ struct csinn_tensor *output_126 = csinn_alloc_tensor(sess);
|
|
|
+ output_126->name = "output_126";
|
|
|
+ output_126->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_126->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_126->dim[0] = 1;
|
|
|
+ output_126->dim[1] = 5;
|
|
|
+ output_126->dim[2] = 5;
|
|
|
+ output_126->dim[3] = 126;
|
|
|
+ output_126->dim_count = 4;
|
|
|
+ output_126->qinfo = (struct csinn_quant_info *)(params_base + 5789691);
|
|
|
+ output_126->quant_channel = 1;
|
|
|
+ struct csinn_transpose_params *params_126 = csinn_alloc_params(sizeof(struct csinn_transpose_params), sess);
|
|
|
+ params_126->permute = permute_126;
|
|
|
+ params_126->permute_num = 4;
|
|
|
+ params_126->base.name = "transpose_178";
|
|
|
+ csinn_transpose_init(output_125, output_126, params_126);
|
|
|
+ int32_t *shape_127 = malloc(2 * 4);
|
|
|
+ shape_127[0] = 1;
|
|
|
+ shape_127[1] = 3150;
|
|
|
+ struct csinn_tensor *output_127 = csinn_alloc_tensor(sess);
|
|
|
+ output_127->name = "output_127";
|
|
|
+ output_127->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_127->layout = CSINN_LAYOUT_NC;
|
|
|
+ output_127->dim[0] = 1;
|
|
|
+ output_127->dim[1] = 3150;
|
|
|
+ output_127->dim_count = 2;
|
|
|
+ output_127->qinfo = (struct csinn_quant_info *)(params_base + 5789715);
|
|
|
+ output_127->quant_channel = 1;
|
|
|
+ struct csinn_reshape_params *params_127 = csinn_alloc_params(sizeof(struct csinn_reshape_params), sess);
|
|
|
+ params_127->shape = shape_127;
|
|
|
+ params_127->shape_num = 2;
|
|
|
+ params_127->base.name = "batch_flatten_179";
|
|
|
+ csinn_reshape_init(output_126, output_127, params_127);
|
|
|
+ struct csinn_tensor *output_129 = csinn_alloc_tensor(sess);
|
|
|
+ output_129->name = "output_129";
|
|
|
+ output_129->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_129->layout = CSINN_LAYOUT_NC;
|
|
|
+ output_129->dim[0] = 1;
|
|
|
+ output_129->dim[1] = 3150;
|
|
|
+ output_129->dim_count = 2;
|
|
|
+ output_129->qinfo = (struct csinn_quant_info *)(params_base + 5789739);
|
|
|
+ output_129->quant_channel = 1;
|
|
|
+ struct csinn_tensor *rhs_129 = csinn_alloc_tensor(sess);
|
|
|
+ rhs_129->name = "rhs_129";
|
|
|
+ rhs_129->data = params_base + 5789787;
|
|
|
+ rhs_129->is_const = 1;
|
|
|
+ rhs_129->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ rhs_129->layout = CSINN_LAYOUT_OI;
|
|
|
+ rhs_129->dim[0] = 1;
|
|
|
+ rhs_129->dim[1] = 3150;
|
|
|
+ rhs_129->dim_count = 2;
|
|
|
+ rhs_129->qinfo = (struct csinn_quant_info *)(params_base + 5789763);
|
|
|
+ rhs_129->quant_channel = 1;
|
|
|
+ struct csinn_diso_params *params_129 = csinn_alloc_params(sizeof(struct csinn_diso_params), sess);
|
|
|
+ params_129->base.name = "mul_175";
|
|
|
+ csinn_mul_init(output_127, rhs_129, output_129, params_129);
|
|
|
+ struct csinn_tensor *output_131 = csinn_alloc_tensor(sess);
|
|
|
+ output_131->name = "output_131";
|
|
|
+ output_131->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_131->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_131->dim[0] = 1;
|
|
|
+ output_131->dim[1] = 126;
|
|
|
+ output_131->dim[2] = 3;
|
|
|
+ output_131->dim[3] = 3;
|
|
|
+ output_131->dim_count = 4;
|
|
|
+ output_131->qinfo = (struct csinn_quant_info *)(params_base + 5792937);
|
|
|
+ output_131->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_131 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_131->name = "kernel_131";
|
|
|
+ kernel_131->data = params_base + 5792985;
|
|
|
+ kernel_131->is_const = 1;
|
|
|
+ kernel_131->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_131->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_131->dim[0] = 126;
|
|
|
+ kernel_131->dim[1] = 256;
|
|
|
+ kernel_131->dim[2] = 1;
|
|
|
+ kernel_131->dim[3] = 1;
|
|
|
+ kernel_131->dim_count = 4;
|
|
|
+ kernel_131->qinfo = (struct csinn_quant_info *)(params_base + 5792961);
|
|
|
+ kernel_131->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_131 = csinn_alloc_tensor(sess);
|
|
|
+ bias_131->name = "bias_131";
|
|
|
+ bias_131->data = params_base + 5825265;
|
|
|
+ bias_131->is_const = 1;
|
|
|
+ bias_131->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_131->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_131->dim[0] = 126;
|
|
|
+ bias_131->dim_count = 1;
|
|
|
+ bias_131->qinfo = (struct csinn_quant_info *)(params_base + 5825241);
|
|
|
+ bias_131->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_131 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_131->group = 1;
|
|
|
+ params_131->stride_height = 1;
|
|
|
+ params_131->stride_width = 1;
|
|
|
+ params_131->dilation_height = 1;
|
|
|
+ params_131->dilation_width = 1;
|
|
|
+ params_131->conv_extra.kernel_tm = NULL;
|
|
|
+ params_131->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_131->pad_top = 0;
|
|
|
+ params_131->pad_left = 0;
|
|
|
+ params_131->pad_down = 0;
|
|
|
+ params_131->pad_right = 0;
|
|
|
+ params_131->base.name = "conv2d_180_fuse_bias_add_181";
|
|
|
+ csinn_conv2d_init(output_85, output_131, kernel_131, bias_131, params_131);
|
|
|
+ int32_t *permute_132 = malloc(4 * 4);
|
|
|
+ permute_132[0] = 0;
|
|
|
+ permute_132[1] = 2;
|
|
|
+ permute_132[2] = 3;
|
|
|
+ permute_132[3] = 1;
|
|
|
+ struct csinn_tensor *output_132 = csinn_alloc_tensor(sess);
|
|
|
+ output_132->name = "output_132";
|
|
|
+ output_132->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_132->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_132->dim[0] = 1;
|
|
|
+ output_132->dim[1] = 3;
|
|
|
+ output_132->dim[2] = 3;
|
|
|
+ output_132->dim[3] = 126;
|
|
|
+ output_132->dim_count = 4;
|
|
|
+ output_132->qinfo = (struct csinn_quant_info *)(params_base + 5825769);
|
|
|
+ output_132->quant_channel = 1;
|
|
|
+ struct csinn_transpose_params *params_132 = csinn_alloc_params(sizeof(struct csinn_transpose_params), sess);
|
|
|
+ params_132->permute = permute_132;
|
|
|
+ params_132->permute_num = 4;
|
|
|
+ params_132->base.name = "transpose_182";
|
|
|
+ csinn_transpose_init(output_131, output_132, params_132);
|
|
|
+ int32_t *shape_133 = malloc(2 * 4);
|
|
|
+ shape_133[0] = 1;
|
|
|
+ shape_133[1] = 1134;
|
|
|
+ struct csinn_tensor *output_133 = csinn_alloc_tensor(sess);
|
|
|
+ output_133->name = "output_133";
|
|
|
+ output_133->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_133->layout = CSINN_LAYOUT_NC;
|
|
|
+ output_133->dim[0] = 1;
|
|
|
+ output_133->dim[1] = 1134;
|
|
|
+ output_133->dim_count = 2;
|
|
|
+ output_133->qinfo = (struct csinn_quant_info *)(params_base + 5825793);
|
|
|
+ output_133->quant_channel = 1;
|
|
|
+ struct csinn_reshape_params *params_133 = csinn_alloc_params(sizeof(struct csinn_reshape_params), sess);
|
|
|
+ params_133->shape = shape_133;
|
|
|
+ params_133->shape_num = 2;
|
|
|
+ params_133->base.name = "batch_flatten_183";
|
|
|
+ csinn_reshape_init(output_132, output_133, params_133);
|
|
|
+ struct csinn_tensor *output_135 = csinn_alloc_tensor(sess);
|
|
|
+ output_135->name = "output_135";
|
|
|
+ output_135->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_135->layout = CSINN_LAYOUT_NC;
|
|
|
+ output_135->dim[0] = 1;
|
|
|
+ output_135->dim[1] = 1134;
|
|
|
+ output_135->dim_count = 2;
|
|
|
+ output_135->qinfo = (struct csinn_quant_info *)(params_base + 5825817);
|
|
|
+ output_135->quant_channel = 1;
|
|
|
+ struct csinn_tensor *rhs_135 = csinn_alloc_tensor(sess);
|
|
|
+ rhs_135->name = "rhs_135";
|
|
|
+ rhs_135->data = params_base + 5825865;
|
|
|
+ rhs_135->is_const = 1;
|
|
|
+ rhs_135->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ rhs_135->layout = CSINN_LAYOUT_OI;
|
|
|
+ rhs_135->dim[0] = 1;
|
|
|
+ rhs_135->dim[1] = 1134;
|
|
|
+ rhs_135->dim_count = 2;
|
|
|
+ rhs_135->qinfo = (struct csinn_quant_info *)(params_base + 5825841);
|
|
|
+ rhs_135->quant_channel = 1;
|
|
|
+ struct csinn_diso_params *params_135 = csinn_alloc_params(sizeof(struct csinn_diso_params), sess);
|
|
|
+ params_135->base.name = "mul_176";
|
|
|
+ csinn_mul_init(output_133, rhs_135, output_135, params_135);
|
|
|
+ struct csinn_tensor *output_137 = csinn_alloc_tensor(sess);
|
|
|
+ output_137->name = "output_137";
|
|
|
+ output_137->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_137->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_137->dim[0] = 1;
|
|
|
+ output_137->dim[1] = 126;
|
|
|
+ output_137->dim[2] = 2;
|
|
|
+ output_137->dim[3] = 2;
|
|
|
+ output_137->dim_count = 4;
|
|
|
+ output_137->qinfo = (struct csinn_quant_info *)(params_base + 5826999);
|
|
|
+ output_137->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_137 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_137->name = "kernel_137";
|
|
|
+ kernel_137->data = params_base + 5827047;
|
|
|
+ kernel_137->is_const = 1;
|
|
|
+ kernel_137->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_137->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_137->dim[0] = 126;
|
|
|
+ kernel_137->dim[1] = 256;
|
|
|
+ kernel_137->dim[2] = 1;
|
|
|
+ kernel_137->dim[3] = 1;
|
|
|
+ kernel_137->dim_count = 4;
|
|
|
+ kernel_137->qinfo = (struct csinn_quant_info *)(params_base + 5827023);
|
|
|
+ kernel_137->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_137 = csinn_alloc_tensor(sess);
|
|
|
+ bias_137->name = "bias_137";
|
|
|
+ bias_137->data = params_base + 5859327;
|
|
|
+ bias_137->is_const = 1;
|
|
|
+ bias_137->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_137->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_137->dim[0] = 126;
|
|
|
+ bias_137->dim_count = 1;
|
|
|
+ bias_137->qinfo = (struct csinn_quant_info *)(params_base + 5859303);
|
|
|
+ bias_137->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_137 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_137->group = 1;
|
|
|
+ params_137->stride_height = 1;
|
|
|
+ params_137->stride_width = 1;
|
|
|
+ params_137->dilation_height = 1;
|
|
|
+ params_137->dilation_width = 1;
|
|
|
+ params_137->conv_extra.kernel_tm = NULL;
|
|
|
+ params_137->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_137->pad_top = 0;
|
|
|
+ params_137->pad_left = 0;
|
|
|
+ params_137->pad_down = 0;
|
|
|
+ params_137->pad_right = 0;
|
|
|
+ params_137->base.name = "conv2d_184_fuse_bias_add_185";
|
|
|
+ csinn_conv2d_init(output_95, output_137, kernel_137, bias_137, params_137);
|
|
|
+ int32_t *permute_138 = malloc(4 * 4);
|
|
|
+ permute_138[0] = 0;
|
|
|
+ permute_138[1] = 2;
|
|
|
+ permute_138[2] = 3;
|
|
|
+ permute_138[3] = 1;
|
|
|
+ struct csinn_tensor *output_138 = csinn_alloc_tensor(sess);
|
|
|
+ output_138->name = "output_138";
|
|
|
+ output_138->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_138->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_138->dim[0] = 1;
|
|
|
+ output_138->dim[1] = 2;
|
|
|
+ output_138->dim[2] = 2;
|
|
|
+ output_138->dim[3] = 126;
|
|
|
+ output_138->dim_count = 4;
|
|
|
+ output_138->qinfo = (struct csinn_quant_info *)(params_base + 5859831);
|
|
|
+ output_138->quant_channel = 1;
|
|
|
+ struct csinn_transpose_params *params_138 = csinn_alloc_params(sizeof(struct csinn_transpose_params), sess);
|
|
|
+ params_138->permute = permute_138;
|
|
|
+ params_138->permute_num = 4;
|
|
|
+ params_138->base.name = "transpose_186";
|
|
|
+ csinn_transpose_init(output_137, output_138, params_138);
|
|
|
+ int32_t *shape_139 = malloc(2 * 4);
|
|
|
+ shape_139[0] = 1;
|
|
|
+ shape_139[1] = 504;
|
|
|
+ struct csinn_tensor *output_139 = csinn_alloc_tensor(sess);
|
|
|
+ output_139->name = "output_139";
|
|
|
+ output_139->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_139->layout = CSINN_LAYOUT_NC;
|
|
|
+ output_139->dim[0] = 1;
|
|
|
+ output_139->dim[1] = 504;
|
|
|
+ output_139->dim_count = 2;
|
|
|
+ output_139->qinfo = (struct csinn_quant_info *)(params_base + 5859855);
|
|
|
+ output_139->quant_channel = 1;
|
|
|
+ struct csinn_reshape_params *params_139 = csinn_alloc_params(sizeof(struct csinn_reshape_params), sess);
|
|
|
+ params_139->shape = shape_139;
|
|
|
+ params_139->shape_num = 2;
|
|
|
+ params_139->base.name = "batch_flatten_187";
|
|
|
+ csinn_reshape_init(output_138, output_139, params_139);
|
|
|
+ struct csinn_tensor *output_141 = csinn_alloc_tensor(sess);
|
|
|
+ output_141->name = "output_141";
|
|
|
+ output_141->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_141->layout = CSINN_LAYOUT_NC;
|
|
|
+ output_141->dim[0] = 1;
|
|
|
+ output_141->dim[1] = 504;
|
|
|
+ output_141->dim_count = 2;
|
|
|
+ output_141->qinfo = (struct csinn_quant_info *)(params_base + 5859879);
|
|
|
+ output_141->quant_channel = 1;
|
|
|
+ struct csinn_tensor *rhs_141 = csinn_alloc_tensor(sess);
|
|
|
+ rhs_141->name = "rhs_141";
|
|
|
+ rhs_141->data = params_base + 5859927;
|
|
|
+ rhs_141->is_const = 1;
|
|
|
+ rhs_141->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ rhs_141->layout = CSINN_LAYOUT_OI;
|
|
|
+ rhs_141->dim[0] = 1;
|
|
|
+ rhs_141->dim[1] = 504;
|
|
|
+ rhs_141->dim_count = 2;
|
|
|
+ rhs_141->qinfo = (struct csinn_quant_info *)(params_base + 5859903);
|
|
|
+ rhs_141->quant_channel = 1;
|
|
|
+ struct csinn_diso_params *params_141 = csinn_alloc_params(sizeof(struct csinn_diso_params), sess);
|
|
|
+ params_141->base.name = "mul_177";
|
|
|
+ csinn_mul_init(output_139, rhs_141, output_141, params_141);
|
|
|
+ struct csinn_tensor *output_143 = csinn_alloc_tensor(sess);
|
|
|
+ output_143->name = "output_143";
|
|
|
+ output_143->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_143->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_143->dim[0] = 1;
|
|
|
+ output_143->dim[1] = 126;
|
|
|
+ output_143->dim[2] = 1;
|
|
|
+ output_143->dim[3] = 1;
|
|
|
+ output_143->dim_count = 4;
|
|
|
+ output_143->qinfo = (struct csinn_quant_info *)(params_base + 5860431);
|
|
|
+ output_143->quant_channel = 1;
|
|
|
+ struct csinn_tensor *kernel_143 = csinn_alloc_tensor(sess);
|
|
|
+ kernel_143->name = "kernel_143";
|
|
|
+ kernel_143->data = params_base + 5860479;
|
|
|
+ kernel_143->is_const = 1;
|
|
|
+ kernel_143->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ kernel_143->layout = CSINN_LAYOUT_OIHW;
|
|
|
+ kernel_143->dim[0] = 126;
|
|
|
+ kernel_143->dim[1] = 128;
|
|
|
+ kernel_143->dim[2] = 1;
|
|
|
+ kernel_143->dim[3] = 1;
|
|
|
+ kernel_143->dim_count = 4;
|
|
|
+ kernel_143->qinfo = (struct csinn_quant_info *)(params_base + 5860455);
|
|
|
+ kernel_143->quant_channel = 1;
|
|
|
+ struct csinn_tensor *bias_143 = csinn_alloc_tensor(sess);
|
|
|
+ bias_143->name = "bias_143";
|
|
|
+ bias_143->data = params_base + 5876631;
|
|
|
+ bias_143->is_const = 1;
|
|
|
+ bias_143->dtype = CSINN_DTYPE_INT32;
|
|
|
+ bias_143->layout = CSINN_LAYOUT_O;
|
|
|
+ bias_143->dim[0] = 126;
|
|
|
+ bias_143->dim_count = 1;
|
|
|
+ bias_143->qinfo = (struct csinn_quant_info *)(params_base + 5876607);
|
|
|
+ bias_143->quant_channel = 1;
|
|
|
+ struct csinn_conv2d_params *params_143 = csinn_alloc_params(sizeof(struct csinn_conv2d_params), sess);
|
|
|
+ params_143->group = 1;
|
|
|
+ params_143->stride_height = 1;
|
|
|
+ params_143->stride_width = 1;
|
|
|
+ params_143->dilation_height = 1;
|
|
|
+ params_143->dilation_width = 1;
|
|
|
+ params_143->conv_extra.kernel_tm = NULL;
|
|
|
+ params_143->conv_extra.conv_mode = CSINN_DIRECT;
|
|
|
+ params_143->pad_top = 0;
|
|
|
+ params_143->pad_left = 0;
|
|
|
+ params_143->pad_down = 0;
|
|
|
+ params_143->pad_right = 0;
|
|
|
+ params_143->base.name = "conv2d_188_fuse_bias_add_189";
|
|
|
+ csinn_conv2d_init(output_105, output_143, kernel_143, bias_143, params_143);
|
|
|
+ int32_t *permute_144 = malloc(4 * 4);
|
|
|
+ permute_144[0] = 0;
|
|
|
+ permute_144[1] = 2;
|
|
|
+ permute_144[2] = 3;
|
|
|
+ permute_144[3] = 1;
|
|
|
+ struct csinn_tensor *output_144 = csinn_alloc_tensor(sess);
|
|
|
+ output_144->name = "output_144";
|
|
|
+ output_144->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_144->layout = CSINN_LAYOUT_NCHW;
|
|
|
+ output_144->dim[0] = 1;
|
|
|
+ output_144->dim[1] = 1;
|
|
|
+ output_144->dim[2] = 1;
|
|
|
+ output_144->dim[3] = 126;
|
|
|
+ output_144->dim_count = 4;
|
|
|
+ output_144->qinfo = (struct csinn_quant_info *)(params_base + 5877135);
|
|
|
+ output_144->quant_channel = 1;
|
|
|
+ struct csinn_transpose_params *params_144 = csinn_alloc_params(sizeof(struct csinn_transpose_params), sess);
|
|
|
+ params_144->permute = permute_144;
|
|
|
+ params_144->permute_num = 4;
|
|
|
+ params_144->base.name = "transpose_190";
|
|
|
+ csinn_transpose_init(output_143, output_144, params_144);
|
|
|
+ int32_t *shape_145 = malloc(2 * 4);
|
|
|
+ shape_145[0] = 1;
|
|
|
+ shape_145[1] = 126;
|
|
|
+ struct csinn_tensor *output_145 = csinn_alloc_tensor(sess);
|
|
|
+ output_145->name = "output_145";
|
|
|
+ output_145->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_145->layout = CSINN_LAYOUT_NC;
|
|
|
+ output_145->dim[0] = 1;
|
|
|
+ output_145->dim[1] = 126;
|
|
|
+ output_145->dim_count = 2;
|
|
|
+ output_145->qinfo = (struct csinn_quant_info *)(params_base + 5877159);
|
|
|
+ output_145->quant_channel = 1;
|
|
|
+ struct csinn_reshape_params *params_145 = csinn_alloc_params(sizeof(struct csinn_reshape_params), sess);
|
|
|
+ params_145->shape = shape_145;
|
|
|
+ params_145->shape_num = 2;
|
|
|
+ params_145->base.name = "batch_flatten_191";
|
|
|
+ csinn_reshape_init(output_144, output_145, params_145);
|
|
|
+ struct csinn_tensor *output_147 = csinn_alloc_tensor(sess);
|
|
|
+ output_147->name = "output_147";
|
|
|
+ output_147->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_147->layout = CSINN_LAYOUT_NC;
|
|
|
+ output_147->dim[0] = 1;
|
|
|
+ output_147->dim[1] = 126;
|
|
|
+ output_147->dim_count = 2;
|
|
|
+ output_147->qinfo = (struct csinn_quant_info *)(params_base + 5877183);
|
|
|
+ output_147->quant_channel = 1;
|
|
|
+ struct csinn_tensor *rhs_147 = csinn_alloc_tensor(sess);
|
|
|
+ rhs_147->name = "rhs_147";
|
|
|
+ rhs_147->data = params_base + 5877231;
|
|
|
+ rhs_147->is_const = 1;
|
|
|
+ rhs_147->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ rhs_147->layout = CSINN_LAYOUT_OI;
|
|
|
+ rhs_147->dim[0] = 1;
|
|
|
+ rhs_147->dim[1] = 126;
|
|
|
+ rhs_147->dim_count = 2;
|
|
|
+ rhs_147->qinfo = (struct csinn_quant_info *)(params_base + 5877207);
|
|
|
+ rhs_147->quant_channel = 1;
|
|
|
+ struct csinn_diso_params *params_147 = csinn_alloc_params(sizeof(struct csinn_diso_params), sess);
|
|
|
+ params_147->base.name = "mul_178";
|
|
|
+ csinn_mul_init(output_145, rhs_147, output_147, params_147);
|
|
|
+ struct csinn_tensor *input_149[6];
|
|
|
+ struct csinn_tensor *output_149 = csinn_alloc_tensor(sess);
|
|
|
+ output_149->name = "output_149";
|
|
|
+ output_149->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_149->layout = CSINN_LAYOUT_NC;
|
|
|
+ output_149->dim[0] = 1;
|
|
|
+ output_149->dim[1] = 40257;
|
|
|
+ output_149->dim_count = 2;
|
|
|
+ output_149->qinfo = (struct csinn_quant_info *)(params_base + 5877357);
|
|
|
+ output_149->quant_channel = 1;
|
|
|
+ struct csinn_concat_params *params_149 = csinn_alloc_params(sizeof(struct csinn_concat_params), sess);
|
|
|
+ params_149->inputs_count = 6;
|
|
|
+ params_149->axis = 1;
|
|
|
+ params_149->base.name = "concatenate_192";
|
|
|
+ csinn_concat_init(input_149, output_149, params_149);
|
|
|
+ int32_t *shape_150 = malloc(3 * 4);
|
|
|
+ shape_150[0] = 1;
|
|
|
+ shape_150[1] = 1917;
|
|
|
+ shape_150[2] = 21;
|
|
|
+ struct csinn_tensor *output_150 = csinn_alloc_tensor(sess);
|
|
|
+ output_150->name = "output_150";
|
|
|
+ output_150->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_150->layout = CSINN_LAYOUT_NCW;
|
|
|
+ output_150->dim[0] = 1;
|
|
|
+ output_150->dim[1] = 1917;
|
|
|
+ output_150->dim[2] = 21;
|
|
|
+ output_150->dim_count = 3;
|
|
|
+ output_150->qinfo = (struct csinn_quant_info *)(params_base + 5877381);
|
|
|
+ output_150->quant_channel = 1;
|
|
|
+ struct csinn_reshape_params *params_150 = csinn_alloc_params(sizeof(struct csinn_reshape_params), sess);
|
|
|
+ params_150->shape = shape_150;
|
|
|
+ params_150->shape_num = 3;
|
|
|
+ params_150->base.name = "reshape_193";
|
|
|
+ csinn_reshape_init(output_149, output_150, params_150);
|
|
|
+ struct csinn_tensor *output_151 = csinn_alloc_tensor(sess);
|
|
|
+ output_151->name = "output_151";
|
|
|
+ output_151->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_151->layout = CSINN_LAYOUT_NCW;
|
|
|
+ output_151->dim[0] = 1;
|
|
|
+ output_151->dim[1] = 1917;
|
|
|
+ output_151->dim[2] = 21;
|
|
|
+ output_151->dim_count = 3;
|
|
|
+ output_151->qinfo = (struct csinn_quant_info *)(params_base + 5877405);
|
|
|
+ output_151->quant_channel = 1;
|
|
|
+ struct csinn_softmax_params *params_151 = csinn_alloc_params(sizeof(struct csinn_softmax_params), sess);
|
|
|
+ params_151->axis = 2;
|
|
|
+ params_151->base.name = "softmax_194";
|
|
|
+ csinn_softmax_init(output_150, output_151, params_151);
|
|
|
+ int32_t *shape_152 = malloc(2 * 4);
|
|
|
+ shape_152[0] = 1;
|
|
|
+ shape_152[1] = 40257;
|
|
|
+ struct csinn_tensor *output_152 = csinn_alloc_tensor(sess);
|
|
|
+ output_152->name = "batch_flatten_195_152";
|
|
|
+ output_152->dtype = CSINN_DTYPE_UINT8;
|
|
|
+ output_152->layout = CSINN_LAYOUT_NC;
|
|
|
+ output_152->dim[0] = 1;
|
|
|
+ output_152->dim[1] = 40257;
|
|
|
+ output_152->dim_count = 2;
|
|
|
+ output_152->qinfo = (struct csinn_quant_info *)(params_base + 5877429);
|
|
|
+ output_152->quant_channel = 1;
|
|
|
+ struct csinn_reshape_params *params_152 = csinn_alloc_params(sizeof(struct csinn_reshape_params), sess);
|
|
|
+ params_152->shape = shape_152;
|
|
|
+ params_152->shape_num = 2;
|
|
|
+ params_152->base.name = "batch_flatten_195";
|
|
|
+ csinn_reshape_init(output_151, output_152, params_152);
|
|
|
+ data->mtype = CSINN_MEM_TYPE_CPU_ALIGNED;
|
|
|
+ csinn_set_tensor_entry(data, sess);
|
|
|
+ csinn_set_input(0, data, sess);
|
|
|
+
|
|
|
+ csinn_mul(data, rhs_1, output_1, params_1);
|
|
|
+ csinn_add(output_1, rhs_4, output_4, params_4);
|
|
|
+ csinn_conv2d(output_4, output_6, kernel_6, bias_6, params_6);
|
|
|
+ csinn_relu(output_6, output_7, params_7);
|
|
|
+ csinn_conv2d(output_7, output_8, kernel_8, bias_8, params_8);
|
|
|
+ csinn_relu(output_8, output_9, params_9);
|
|
|
+ csinn_conv2d(output_9, output_10, kernel_10, bias_10, params_10);
|
|
|
+ csinn_relu(output_10, output_11, params_11);
|
|
|
+ csinn_conv2d(output_11, output_12, kernel_12, bias_12, params_12);
|
|
|
+ csinn_relu(output_12, output_13, params_13);
|
|
|
+ csinn_conv2d(output_13, output_14, kernel_14, bias_14, params_14);
|
|
|
+ csinn_relu(output_14, output_15, params_15);
|
|
|
+ csinn_conv2d(output_15, output_16, kernel_16, bias_16, params_16);
|
|
|
+ csinn_relu(output_16, output_17, params_17);
|
|
|
+ csinn_conv2d(output_17, output_18, kernel_18, bias_18, params_18);
|
|
|
+ csinn_relu(output_18, output_19, params_19);
|
|
|
+ csinn_conv2d(output_19, output_20, kernel_20, bias_20, params_20);
|
|
|
+ csinn_relu(output_20, output_21, params_21);
|
|
|
+ csinn_conv2d(output_21, output_22, kernel_22, bias_22, params_22);
|
|
|
+ csinn_relu(output_22, output_23, params_23);
|
|
|
+ csinn_conv2d(output_23, output_24, kernel_24, bias_24, params_24);
|
|
|
+ csinn_relu(output_24, output_25, params_25);
|
|
|
+ csinn_conv2d(output_25, output_26, kernel_26, bias_26, params_26);
|
|
|
+ csinn_relu(output_26, output_27, params_27);
|
|
|
+ csinn_conv2d(output_27, output_28, kernel_28, bias_28, params_28);
|
|
|
+ csinn_relu(output_28, output_29, params_29);
|
|
|
+ csinn_conv2d(output_29, output_30, kernel_30, bias_30, params_30);
|
|
|
+ csinn_relu(output_30, output_31, params_31);
|
|
|
+ csinn_conv2d(output_31, output_32, kernel_32, bias_32, params_32);
|
|
|
+ csinn_relu(output_32, output_33, params_33);
|
|
|
+ csinn_conv2d(output_33, output_34, kernel_34, bias_34, params_34);
|
|
|
+ csinn_relu(output_34, output_35, params_35);
|
|
|
+ csinn_conv2d(output_35, output_36, kernel_36, bias_36, params_36);
|
|
|
+ csinn_relu(output_36, output_37, params_37);
|
|
|
+ csinn_conv2d(output_37, output_38, kernel_38, bias_38, params_38);
|
|
|
+ csinn_relu(output_38, output_39, params_39);
|
|
|
+ csinn_conv2d(output_39, output_40, kernel_40, bias_40, params_40);
|
|
|
+ csinn_relu(output_40, output_41, params_41);
|
|
|
+ csinn_conv2d(output_41, output_42, kernel_42, bias_42, params_42);
|
|
|
+ csinn_relu(output_42, output_43, params_43);
|
|
|
+ csinn_conv2d(output_43, output_44, kernel_44, bias_44, params_44);
|
|
|
+ csinn_relu(output_44, output_45, params_45);
|
|
|
+ csinn_conv2d(output_45, output_46, kernel_46, bias_46, params_46);
|
|
|
+ csinn_relu(output_46, output_47, params_47);
|
|
|
+ csinn_conv2d(output_47, output_48, kernel_48, bias_48, params_48);
|
|
|
+ csinn_relu(output_48, output_49, params_49);
|
|
|
+ csinn_conv2d(output_49, output_50, kernel_50, bias_50, params_50);
|
|
|
+ csinn_relu(output_50, output_51, params_51);
|
|
|
+ csinn_conv2d(output_51, output_52, kernel_52, bias_52, params_52);
|
|
|
+ csinn_transpose(output_52, output_53, params_53);
|
|
|
+ csinn_reshape(output_53, output_54, params_54);
|
|
|
+ csinn_mul(output_54, rhs_56, output_56, params_56);
|
|
|
+ csinn_conv2d(output_51, output_58, kernel_58, bias_58, params_58);
|
|
|
+ csinn_relu(output_58, output_59, params_59);
|
|
|
+ csinn_conv2d(output_59, output_60, kernel_60, bias_60, params_60);
|
|
|
+ csinn_relu(output_60, output_61, params_61);
|
|
|
+ csinn_conv2d(output_61, output_62, kernel_62, bias_62, params_62);
|
|
|
+ csinn_relu(output_62, output_63, params_63);
|
|
|
+ csinn_conv2d(output_63, output_64, kernel_64, bias_64, params_64);
|
|
|
+ csinn_relu(output_64, output_65, params_65);
|
|
|
+ csinn_conv2d(output_65, output_66, kernel_66, bias_66, params_66);
|
|
|
+ csinn_transpose(output_66, output_67, params_67);
|
|
|
+ csinn_reshape(output_67, output_68, params_68);
|
|
|
+ csinn_mul(output_68, rhs_70, output_70, params_70);
|
|
|
+ csinn_conv2d(output_65, output_72, kernel_72, bias_72, params_72);
|
|
|
+ csinn_relu(output_72, output_73, params_73);
|
|
|
+ csinn_conv2d(output_73, output_74, kernel_74, bias_74, params_74);
|
|
|
+ csinn_relu(output_74, output_75, params_75);
|
|
|
+ csinn_conv2d(output_75, output_76, kernel_76, bias_76, params_76);
|
|
|
+ csinn_transpose(output_76, output_77, params_77);
|
|
|
+ csinn_reshape(output_77, output_78, params_78);
|
|
|
+ csinn_mul(output_78, rhs_80, output_80, params_80);
|
|
|
+ csinn_conv2d(output_75, output_82, kernel_82, bias_82, params_82);
|
|
|
+ csinn_relu(output_82, output_83, params_83);
|
|
|
+ csinn_conv2d(output_83, output_84, kernel_84, bias_84, params_84);
|
|
|
+ csinn_relu(output_84, output_85, params_85);
|
|
|
+ csinn_conv2d(output_85, output_86, kernel_86, bias_86, params_86);
|
|
|
+ csinn_transpose(output_86, output_87, params_87);
|
|
|
+ csinn_reshape(output_87, output_88, params_88);
|
|
|
+ csinn_mul(output_88, rhs_90, output_90, params_90);
|
|
|
+ csinn_conv2d(output_85, output_92, kernel_92, bias_92, params_92);
|
|
|
+ csinn_relu(output_92, output_93, params_93);
|
|
|
+ csinn_conv2d(output_93, output_94, kernel_94, bias_94, params_94);
|
|
|
+ csinn_relu(output_94, output_95, params_95);
|
|
|
+ csinn_conv2d(output_95, output_96, kernel_96, bias_96, params_96);
|
|
|
+ csinn_transpose(output_96, output_97, params_97);
|
|
|
+ csinn_reshape(output_97, output_98, params_98);
|
|
|
+ csinn_mul(output_98, rhs_100, output_100, params_100);
|
|
|
+ csinn_conv2d(output_95, output_102, kernel_102, bias_102, params_102);
|
|
|
+ csinn_relu(output_102, output_103, params_103);
|
|
|
+ csinn_conv2d(output_103, output_104, kernel_104, bias_104, params_104);
|
|
|
+ csinn_relu(output_104, output_105, params_105);
|
|
|
+ csinn_conv2d(output_105, output_106, kernel_106, bias_106, params_106);
|
|
|
+ csinn_transpose(output_106, output_107, params_107);
|
|
|
+ csinn_reshape(output_107, output_108, params_108);
|
|
|
+ csinn_mul(output_108, rhs_110, output_110, params_110);
|
|
|
+ input_112[0] = output_56;
|
|
|
+ input_112[1] = output_70;
|
|
|
+ input_112[2] = output_80;
|
|
|
+ input_112[3] = output_90;
|
|
|
+ input_112[4] = output_100;
|
|
|
+ input_112[5] = output_110;
|
|
|
+ csinn_concat(input_112, output_112, params_112);
|
|
|
+ csinn_conv2d(output_51, output_113, kernel_113, bias_113, params_113);
|
|
|
+ csinn_transpose(output_113, output_114, params_114);
|
|
|
+ csinn_reshape(output_114, output_115, params_115);
|
|
|
+ csinn_mul(output_115, rhs_117, output_117, params_117);
|
|
|
+ csinn_conv2d(output_65, output_119, kernel_119, bias_119, params_119);
|
|
|
+ csinn_transpose(output_119, output_120, params_120);
|
|
|
+ csinn_reshape(output_120, output_121, params_121);
|
|
|
+ csinn_mul(output_121, rhs_123, output_123, params_123);
|
|
|
+ csinn_conv2d(output_75, output_125, kernel_125, bias_125, params_125);
|
|
|
+ csinn_transpose(output_125, output_126, params_126);
|
|
|
+ csinn_reshape(output_126, output_127, params_127);
|
|
|
+ csinn_mul(output_127, rhs_129, output_129, params_129);
|
|
|
+ csinn_conv2d(output_85, output_131, kernel_131, bias_131, params_131);
|
|
|
+ csinn_transpose(output_131, output_132, params_132);
|
|
|
+ csinn_reshape(output_132, output_133, params_133);
|
|
|
+ csinn_mul(output_133, rhs_135, output_135, params_135);
|
|
|
+ csinn_conv2d(output_95, output_137, kernel_137, bias_137, params_137);
|
|
|
+ csinn_transpose(output_137, output_138, params_138);
|
|
|
+ csinn_reshape(output_138, output_139, params_139);
|
|
|
+ csinn_mul(output_139, rhs_141, output_141, params_141);
|
|
|
+ csinn_conv2d(output_105, output_143, kernel_143, bias_143, params_143);
|
|
|
+ csinn_transpose(output_143, output_144, params_144);
|
|
|
+ csinn_reshape(output_144, output_145, params_145);
|
|
|
+ csinn_mul(output_145, rhs_147, output_147, params_147);
|
|
|
+ input_149[0] = output_117;
|
|
|
+ input_149[1] = output_123;
|
|
|
+ input_149[2] = output_129;
|
|
|
+ input_149[3] = output_135;
|
|
|
+ input_149[4] = output_141;
|
|
|
+ input_149[5] = output_147;
|
|
|
+ csinn_concat(input_149, output_149, params_149);
|
|
|
+ csinn_reshape(output_149, output_150, params_150);
|
|
|
+ csinn_softmax(output_150, output_151, params_151);
|
|
|
+ csinn_reshape(output_151, output_152, params_152);
|
|
|
+ csinn_set_output(0, output_112, sess);
|
|
|
+ csinn_set_output(1, output_152, sess);
|
|
|
+ shl_pnna_set_input_strides(sess, 1, 304 ,304);
|
|
|
+
|
|
|
+ csinn_session_setup(sess);
|
|
|
+ return sess;
|
|
|
+}
|
|
|
+void csinn_run(void* data0, void *sess) {
|
|
|
+ struct csinn_tensor input_tensor;
|
|
|
+ input_tensor.data = data0;
|
|
|
+ csinn_update_input(0, &input_tensor, sess);
|
|
|
+ csinn_session_run(sess);
|
|
|
+}
|
|
|
+
|
|
|
+struct csinn_session *csinn_import_binary_model(char *bm_addr) {
|
|
|
+ struct shl_binary_model_section_info *sinfo = (struct shl_binary_model_section_info *)(bm_addr + 4096);
|
|
|
+ struct csinn_session *bm_sess = (struct csinn_session *)(bm_addr + sinfo->sections->info_offset * 4096);
|
|
|
+ struct csinn_session *sess = csinn_alloc_session();
|
|
|
+ shl_bm_session_load(sess, bm_sess);
|
|
|
+ sess->model.bm_addr = bm_addr + sinfo->sections->graph_offset * 4096;
|
|
|
+ sess->model.bm_size = sinfo->sections->graph_size;
|
|
|
+ shl_pnna_set_input_strides(sess, 1, 304 ,304);
|
|
|
+ csinn_load_binary_model(sess);
|
|
|
+ return sess;
|
|
|
+}
|