/frameworks/ml/nn/runtime/test/generated/models/ |
D | l2_normalization_axis.model.cpp | 3 void CreateModel_dim4_axis0(Model *model) { in CreateModel_dim4_axis0() argument 7 auto op1 = model->addOperand(&type2); in CreateModel_dim4_axis0() 8 auto axis = model->addOperand(&type1); in CreateModel_dim4_axis0() 9 auto op2 = model->addOperand(&type2); in CreateModel_dim4_axis0() 12 model->setOperandValue(axis, axis_init, sizeof(int32_t) * 1); in CreateModel_dim4_axis0() 13 model->addOperation(ANEURALNETWORKS_L2_NORMALIZATION, {op1, axis}, {op2}); in CreateModel_dim4_axis0() 15 model->identifyInputsAndOutputs( in CreateModel_dim4_axis0() 18 assert(model->isValid()); in CreateModel_dim4_axis0() 26 void CreateModel_dim4_axis0_relaxed(Model *model) { in CreateModel_dim4_axis0_relaxed() argument 30 auto op1 = model->addOperand(&type2); in CreateModel_dim4_axis0_relaxed() [all …]
|
D | depthwise_conv2d_dilation.model.cpp | 3 void CreateModel_nhwc(Model *model) { in CreateModel_nhwc() argument 10 auto op1 = model->addOperand(&type1); in CreateModel_nhwc() 11 auto op2 = model->addOperand(&type2); in CreateModel_nhwc() 12 auto op3 = model->addOperand(&type3); in CreateModel_nhwc() 13 auto param = model->addOperand(&type4); in CreateModel_nhwc() 14 auto param1 = model->addOperand(&type4); in CreateModel_nhwc() 15 auto param2 = model->addOperand(&type4); in CreateModel_nhwc() 16 auto param3 = model->addOperand(&type4); in CreateModel_nhwc() 17 auto param4 = model->addOperand(&type4); in CreateModel_nhwc() 18 auto param5 = model->addOperand(&type4); in CreateModel_nhwc() [all …]
|
D | concat_zero_sized.model.cpp | 3 void CreateModel(Model *model) { in CreateModel() argument 17 auto scores = model->addOperand(&type0); in CreateModel() 18 auto roi = model->addOperand(&type1); in CreateModel() 19 auto param = model->addOperand(&type5); in CreateModel() 20 auto param1 = model->addOperand(&type6); in CreateModel() 21 auto param2 = model->addOperand(&type7); in CreateModel() 22 auto param3 = model->addOperand(&type7); in CreateModel() 23 auto param4 = model->addOperand(&type6); in CreateModel() 24 auto param5 = model->addOperand(&type6); in CreateModel() 25 auto param6 = model->addOperand(&type6); in CreateModel() [all …]
|
D | avg_pool_v1_2.model.cpp | 3 void CreateModel_nhwc(Model *model) { in CreateModel_nhwc() argument 8 auto op1 = model->addOperand(&type1); in CreateModel_nhwc() 9 auto param = model->addOperand(&type2); in CreateModel_nhwc() 10 auto param1 = model->addOperand(&type2); in CreateModel_nhwc() 11 auto param2 = model->addOperand(&type2); in CreateModel_nhwc() 12 auto param3 = model->addOperand(&type2); in CreateModel_nhwc() 13 auto param4 = model->addOperand(&type2); in CreateModel_nhwc() 14 auto param5 = model->addOperand(&type2); in CreateModel_nhwc() 15 auto param6 = model->addOperand(&type2); in CreateModel_nhwc() 16 auto param7 = model->addOperand(&type2); in CreateModel_nhwc() [all …]
|
D | l2_pool_v1_2.model.cpp | 3 void CreateModel_nhwc(Model *model) { in CreateModel_nhwc() argument 8 auto op1 = model->addOperand(&type1); in CreateModel_nhwc() 9 auto param = model->addOperand(&type2); in CreateModel_nhwc() 10 auto param1 = model->addOperand(&type2); in CreateModel_nhwc() 11 auto param2 = model->addOperand(&type2); in CreateModel_nhwc() 12 auto param3 = model->addOperand(&type2); in CreateModel_nhwc() 13 auto param4 = model->addOperand(&type2); in CreateModel_nhwc() 14 auto param5 = model->addOperand(&type2); in CreateModel_nhwc() 15 auto param6 = model->addOperand(&type2); in CreateModel_nhwc() 16 auto param7 = model->addOperand(&type2); in CreateModel_nhwc() [all …]
|
D | fully_connected_v1_2.model.cpp | 3 void CreateModel(Model *model) { in CreateModel() argument 9 auto op1 = model->addOperand(&type0); in CreateModel() 10 auto op2 = model->addOperand(&type1); in CreateModel() 11 auto b0 = model->addOperand(&type2); in CreateModel() 12 auto act = model->addOperand(&type3); in CreateModel() 13 auto op3 = model->addOperand(&type0); in CreateModel() 16 model->setOperandValue(op2, op2_init, sizeof(float) * 1); in CreateModel() 18 model->setOperandValue(b0, b0_init, sizeof(float) * 1); in CreateModel() 20 model->setOperandValue(act, act_init, sizeof(int32_t) * 1); in CreateModel() 21 model->addOperation(ANEURALNETWORKS_FULLY_CONNECTED, {op1, op2, b0, act}, {op3}); in CreateModel() [all …]
|
D | grouped_conv2d.model.cpp | 3 void CreateModel_nhwc_none(Model *model) { in CreateModel_nhwc_none() argument 11 auto op1 = model->addOperand(&type1); in CreateModel_nhwc_none() 12 auto op2 = model->addOperand(&type2); in CreateModel_nhwc_none() 13 auto op3 = model->addOperand(&type3); in CreateModel_nhwc_none() 14 auto param = model->addOperand(&type4); in CreateModel_nhwc_none() 15 auto param1 = model->addOperand(&type4); in CreateModel_nhwc_none() 16 auto param2 = model->addOperand(&type4); in CreateModel_nhwc_none() 17 auto param3 = model->addOperand(&type4); in CreateModel_nhwc_none() 18 auto param4 = model->addOperand(&type4); in CreateModel_nhwc_none() 19 auto param5 = model->addOperand(&type4); in CreateModel_nhwc_none() [all …]
|
D | resize_bilinear_v1_2.model.cpp | 3 void CreateModel_shape_nhwc(Model *model) { in CreateModel_shape_nhwc() argument 9 auto op1 = model->addOperand(&type1); in CreateModel_shape_nhwc() 10 auto param = model->addOperand(&type3); in CreateModel_shape_nhwc() 11 auto param1 = model->addOperand(&type3); in CreateModel_shape_nhwc() 12 auto layout = model->addOperand(&type0); in CreateModel_shape_nhwc() 13 auto op4 = model->addOperand(&type2); in CreateModel_shape_nhwc() 16 model->setOperandValue(param, param_init, sizeof(int32_t) * 1); in CreateModel_shape_nhwc() 18 model->setOperandValue(param1, param1_init, sizeof(int32_t) * 1); in CreateModel_shape_nhwc() 20 model->setOperandValue(layout, layout_init, sizeof(bool8) * 1); in CreateModel_shape_nhwc() 21 model->addOperation(ANEURALNETWORKS_RESIZE_BILINEAR, {op1, param, param1, layout}, {op4}); in CreateModel_shape_nhwc() [all …]
|
D | depthwise_conv2d_v1_2.model.cpp | 3 void CreateModel_nhwc(Model *model) { in CreateModel_nhwc() argument 10 auto op1 = model->addOperand(&type1); in CreateModel_nhwc() 11 auto op2 = model->addOperand(&type2); in CreateModel_nhwc() 12 auto op3 = model->addOperand(&type3); in CreateModel_nhwc() 13 auto param = model->addOperand(&type4); in CreateModel_nhwc() 14 auto param1 = model->addOperand(&type4); in CreateModel_nhwc() 15 auto param2 = model->addOperand(&type4); in CreateModel_nhwc() 16 auto param3 = model->addOperand(&type4); in CreateModel_nhwc() 17 auto param4 = model->addOperand(&type4); in CreateModel_nhwc() 18 auto param5 = model->addOperand(&type4); in CreateModel_nhwc() [all …]
|
D | logistic_v1_2.model.cpp | 3 void CreateModel(Model *model) { in CreateModel() argument 6 auto op1 = model->addOperand(&type0); in CreateModel() 7 auto op3 = model->addOperand(&type0); in CreateModel() 9 model->addOperation(ANEURALNETWORKS_LOGISTIC, {op1}, {op3}); in CreateModel() 11 model->identifyInputsAndOutputs( in CreateModel() 14 assert(model->isValid()); in CreateModel() 22 void CreateModel_dynamic_output_shape(Model *model) { in CreateModel_dynamic_output_shape() argument 26 auto op1 = model->addOperand(&type0); in CreateModel_dynamic_output_shape() 27 auto op3 = model->addOperand(&type13); in CreateModel_dynamic_output_shape() 29 model->addOperation(ANEURALNETWORKS_LOGISTIC, {op1}, {op3}); in CreateModel_dynamic_output_shape() [all …]
|
D | relu_v1_2.model.cpp | 3 void CreateModel(Model *model) { in CreateModel() argument 6 auto op1 = model->addOperand(&type0); in CreateModel() 7 auto op2 = model->addOperand(&type0); in CreateModel() 9 model->addOperation(ANEURALNETWORKS_RELU, {op1}, {op2}); in CreateModel() 11 model->identifyInputsAndOutputs( in CreateModel() 14 assert(model->isValid()); in CreateModel() 22 void CreateModel_dynamic_output_shape(Model *model) { in CreateModel_dynamic_output_shape() argument 26 auto op1 = model->addOperand(&type0); in CreateModel_dynamic_output_shape() 27 auto op2 = model->addOperand(&type13); in CreateModel_dynamic_output_shape() 29 model->addOperation(ANEURALNETWORKS_RELU, {op1}, {op2}); in CreateModel_dynamic_output_shape() [all …]
|
D | tanh_v1_2.model.cpp | 3 void CreateModel(Model *model) { in CreateModel() argument 6 auto input0 = model->addOperand(&type0); in CreateModel() 7 auto output0 = model->addOperand(&type0); in CreateModel() 9 model->addOperation(ANEURALNETWORKS_TANH, {input0}, {output0}); in CreateModel() 11 model->identifyInputsAndOutputs( in CreateModel() 14 assert(model->isValid()); in CreateModel() 22 void CreateModel_dynamic_output_shape(Model *model) { in CreateModel_dynamic_output_shape() argument 26 auto input0 = model->addOperand(&type0); in CreateModel_dynamic_output_shape() 27 auto output0 = model->addOperand(&type14); in CreateModel_dynamic_output_shape() 29 model->addOperation(ANEURALNETWORKS_TANH, {input0}, {output0}); in CreateModel_dynamic_output_shape() [all …]
|
D | relu6_v1_2.model.cpp | 3 void CreateModel(Model *model) { in CreateModel() argument 6 auto op1 = model->addOperand(&type0); in CreateModel() 7 auto op2 = model->addOperand(&type0); in CreateModel() 9 model->addOperation(ANEURALNETWORKS_RELU6, {op1}, {op2}); in CreateModel() 11 model->identifyInputsAndOutputs( in CreateModel() 14 assert(model->isValid()); in CreateModel() 22 void CreateModel_dynamic_output_shape(Model *model) { in CreateModel_dynamic_output_shape() argument 26 auto op1 = model->addOperand(&type0); in CreateModel_dynamic_output_shape() 27 auto op2 = model->addOperand(&type13); in CreateModel_dynamic_output_shape() 29 model->addOperation(ANEURALNETWORKS_RELU6, {op1}, {op2}); in CreateModel_dynamic_output_shape() [all …]
|
D | relu1_v1_2.model.cpp | 3 void CreateModel(Model *model) { in CreateModel() argument 6 auto op1 = model->addOperand(&type0); in CreateModel() 7 auto op2 = model->addOperand(&type0); in CreateModel() 9 model->addOperation(ANEURALNETWORKS_RELU1, {op1}, {op2}); in CreateModel() 11 model->identifyInputsAndOutputs( in CreateModel() 14 assert(model->isValid()); in CreateModel() 22 void CreateModel_dynamic_output_shape(Model *model) { in CreateModel_dynamic_output_shape() argument 26 auto op1 = model->addOperand(&type0); in CreateModel_dynamic_output_shape() 27 auto op2 = model->addOperand(&type13); in CreateModel_dynamic_output_shape() 29 model->addOperation(ANEURALNETWORKS_RELU1, {op1}, {op2}); in CreateModel_dynamic_output_shape() [all …]
|
D | max_pool_v1_2.model.cpp | 3 void CreateModel_nhwc(Model *model) { in CreateModel_nhwc() argument 8 auto op1 = model->addOperand(&type1); in CreateModel_nhwc() 9 auto param = model->addOperand(&type2); in CreateModel_nhwc() 10 auto param1 = model->addOperand(&type2); in CreateModel_nhwc() 11 auto param2 = model->addOperand(&type2); in CreateModel_nhwc() 12 auto param3 = model->addOperand(&type2); in CreateModel_nhwc() 13 auto param4 = model->addOperand(&type2); in CreateModel_nhwc() 14 auto param5 = model->addOperand(&type2); in CreateModel_nhwc() 15 auto param6 = model->addOperand(&type2); in CreateModel_nhwc() 16 auto param7 = model->addOperand(&type2); in CreateModel_nhwc() [all …]
|
D | l2_normalization_v1_2.model.cpp | 3 void CreateModel_dim4_axis3(Model *model) { in CreateModel_dim4_axis3() argument 6 auto op1 = model->addOperand(&type0); in CreateModel_dim4_axis3() 7 auto op2 = model->addOperand(&type0); in CreateModel_dim4_axis3() 9 model->addOperation(ANEURALNETWORKS_L2_NORMALIZATION, {op1}, {op2}); in CreateModel_dim4_axis3() 11 model->identifyInputsAndOutputs( in CreateModel_dim4_axis3() 14 assert(model->isValid()); in CreateModel_dim4_axis3() 22 void CreateModel_dim4_axis3_relaxed(Model *model) { in CreateModel_dim4_axis3_relaxed() argument 25 auto op1 = model->addOperand(&type0); in CreateModel_dim4_axis3_relaxed() 26 auto op2 = model->addOperand(&type0); in CreateModel_dim4_axis3_relaxed() 28 model->addOperation(ANEURALNETWORKS_L2_NORMALIZATION, {op1}, {op2}); in CreateModel_dim4_axis3_relaxed() [all …]
|
D | instance_normalization.model.cpp | 3 void CreateModel_nhwc(Model *model) { in CreateModel_nhwc() argument 8 auto in = model->addOperand(&type1); in CreateModel_nhwc() 9 auto param = model->addOperand(&type2); in CreateModel_nhwc() 10 auto param1 = model->addOperand(&type2); in CreateModel_nhwc() 11 auto param2 = model->addOperand(&type2); in CreateModel_nhwc() 12 auto layout = model->addOperand(&type0); in CreateModel_nhwc() 13 auto out = model->addOperand(&type1); in CreateModel_nhwc() 16 model->setOperandValue(param, param_init, sizeof(float) * 1); in CreateModel_nhwc() 18 model->setOperandValue(param1, param1_init, sizeof(float) * 1); in CreateModel_nhwc() 20 model->setOperandValue(param2, param2_init, sizeof(float) * 1); in CreateModel_nhwc() [all …]
|
D | roi_align.model.cpp | 3 void CreateModel_nhwc(Model *model) { in CreateModel_nhwc() argument 12 auto in = model->addOperand(&type1); in CreateModel_nhwc() 13 auto roi = model->addOperand(&type2); in CreateModel_nhwc() 14 auto param = model->addOperand(&type4); in CreateModel_nhwc() 15 auto param1 = model->addOperand(&type5); in CreateModel_nhwc() 16 auto param2 = model->addOperand(&type5); in CreateModel_nhwc() 17 auto param3 = model->addOperand(&type6); in CreateModel_nhwc() 18 auto param4 = model->addOperand(&type6); in CreateModel_nhwc() 19 auto param5 = model->addOperand(&type5); in CreateModel_nhwc() 20 auto param6 = model->addOperand(&type5); in CreateModel_nhwc() [all …]
|
D | transpose_v1_2.model.cpp | 3 void CreateModel(Model *model) { in CreateModel() argument 7 auto input = model->addOperand(&type0); in CreateModel() 8 auto perms = model->addOperand(&type1); in CreateModel() 9 auto output = model->addOperand(&type0); in CreateModel() 11 model->addOperation(ANEURALNETWORKS_TRANSPOSE, {input, perms}, {output}); in CreateModel() 13 model->identifyInputsAndOutputs( in CreateModel() 16 assert(model->isValid()); in CreateModel() 24 void CreateModel_relaxed(Model *model) { in CreateModel_relaxed() argument 28 auto input = model->addOperand(&type0); in CreateModel_relaxed() 29 auto perms = model->addOperand(&type1); in CreateModel_relaxed() [all …]
|
D | cast.model.cpp | 3 void CreateModel(Model *model) { in CreateModel() argument 6 auto input0 = model->addOperand(&type0); in CreateModel() 7 auto output0 = model->addOperand(&type0); in CreateModel() 9 model->addOperation(ANEURALNETWORKS_CAST, {input0}, {output0}); in CreateModel() 11 model->identifyInputsAndOutputs( in CreateModel() 14 assert(model->isValid()); in CreateModel() 22 void CreateModel_dynamic_output_shape(Model *model) { in CreateModel_dynamic_output_shape() argument 26 auto input0 = model->addOperand(&type0); in CreateModel_dynamic_output_shape() 27 auto output0 = model->addOperand(&type8); in CreateModel_dynamic_output_shape() 29 model->addOperation(ANEURALNETWORKS_CAST, {input0}, {output0}); in CreateModel_dynamic_output_shape() [all …]
|
D | depthwise_conv2d_per_channel.model.cpp | 3 void CreateModel_same(Model *model) { in CreateModel_same() argument 10 auto op1 = model->addOperand(&type0); in CreateModel_same() 11 auto op2 = model->addOperand(&type1); in CreateModel_same() 12 auto op3 = model->addOperand(&type2); in CreateModel_same() 13 auto param = model->addOperand(&type4); in CreateModel_same() 14 auto param1 = model->addOperand(&type4); in CreateModel_same() 15 auto param2 = model->addOperand(&type4); in CreateModel_same() 16 auto param3 = model->addOperand(&type4); in CreateModel_same() 17 auto param4 = model->addOperand(&type4); in CreateModel_same() 18 auto param5 = model->addOperand(&type4); in CreateModel_same() [all …]
|
D | softmax_v1_2.model.cpp | 3 void CreateModel(Model *model) { in CreateModel() argument 7 auto op1 = model->addOperand(&type0); in CreateModel() 8 auto param = model->addOperand(&type2); in CreateModel() 9 auto op2 = model->addOperand(&type0); in CreateModel() 12 model->setOperandValue(param, param_init, sizeof(float) * 1); in CreateModel() 13 model->addOperation(ANEURALNETWORKS_SOFTMAX, {op1, param}, {op2}); in CreateModel() 15 model->identifyInputsAndOutputs( in CreateModel() 18 assert(model->isValid()); in CreateModel() 26 void CreateModel_dim1_axis0(Model *model) { in CreateModel_dim1_axis0() argument 30 auto op1 = model->addOperand(&type12); in CreateModel_dim1_axis0() [all …]
|
D | detection_postprocess.model.cpp | 3 void CreateModel_regular(Model *model) { in CreateModel_regular() argument 15 auto scores = model->addOperand(&type0); in CreateModel_regular() 16 auto roi = model->addOperand(&type1); in CreateModel_regular() 17 auto anchors = model->addOperand(&type2); in CreateModel_regular() 18 auto param = model->addOperand(&type7); in CreateModel_regular() 19 auto param1 = model->addOperand(&type7); in CreateModel_regular() 20 auto param2 = model->addOperand(&type7); in CreateModel_regular() 21 auto param3 = model->addOperand(&type7); in CreateModel_regular() 22 auto param4 = model->addOperand(&type8); in CreateModel_regular() 23 auto param5 = model->addOperand(&type9); in CreateModel_regular() [all …]
|
D | slice.model.cpp | 3 void CreateModel(Model *model) { in CreateModel() argument 8 auto input = model->addOperand(&type0); in CreateModel() 9 auto begin = model->addOperand(&type1); in CreateModel() 10 auto size = model->addOperand(&type1); in CreateModel() 11 auto output = model->addOperand(&type2); in CreateModel() 13 model->addOperation(ANEURALNETWORKS_SLICE, {input, begin, size}, {output}); in CreateModel() 15 model->identifyInputsAndOutputs( in CreateModel() 18 assert(model->isValid()); in CreateModel() 26 void CreateModel_relaxed(Model *model) { in CreateModel_relaxed() argument 31 auto input = model->addOperand(&type0); in CreateModel_relaxed() [all …]
|
D | bbox_graph.model.cpp | 3 void CreateModel_zero_sized(Model *model) { in CreateModel_zero_sized() argument 22 auto scores = model->addOperand(&type1); in CreateModel_zero_sized() 23 auto deltas = model->addOperand(&type2); in CreateModel_zero_sized() 24 auto anchors = model->addOperand(&type3); in CreateModel_zero_sized() 25 auto imageInfo = model->addOperand(&type4); in CreateModel_zero_sized() 26 auto param = model->addOperand(&type8); in CreateModel_zero_sized() 27 auto param1 = model->addOperand(&type8); in CreateModel_zero_sized() 28 auto param2 = model->addOperand(&type9); in CreateModel_zero_sized() 29 auto param3 = model->addOperand(&type9); in CreateModel_zero_sized() 30 auto param4 = model->addOperand(&type8); in CreateModel_zero_sized() [all …]
|