Home
last modified time | relevance | path

Searched refs:input2_id (Results 1 – 22 of 22) sorted by relevance

/external/XNNPACK/src/subgraph/
Dminimum2.c33 const uint32_t input2_id = node->inputs[1]; in create_minimum_operator() local
34 assert(input2_id != XNN_INVALID_VALUE_ID); in create_minimum_operator()
35 assert(input2_id < num_values); in create_minimum_operator()
61 opdata->shape2.num_dims = values[input2_id].shape.num_dims; in create_minimum_operator()
64 assert(values[input2_id].layout == xnn_layout_type_nchw); in create_minimum_operator()
70 opdata->shape2.dim[0] = values[input2_id].shape.dim[0]; in create_minimum_operator()
71 opdata->shape2.dim[1] = values[input2_id].shape.dim[values[input2_id].shape.num_dims - 1]; in create_minimum_operator()
73 …memcpy(&opdata->shape2.dim[2], &values[input2_id].shape.dim[1], (values[input2_id].shape.num_dims … in create_minimum_operator()
78 assert(values[input2_id].layout == xnn_layout_type_nhwc); in create_minimum_operator()
80 …memcpy(opdata->shape2.dim, values[input2_id].shape.dim, values[input2_id].shape.num_dims * sizeof(… in create_minimum_operator()
[all …]
Dmaximum2.c33 const uint32_t input2_id = node->inputs[1]; in create_maximum_operator() local
34 assert(input2_id != XNN_INVALID_VALUE_ID); in create_maximum_operator()
35 assert(input2_id < num_values); in create_maximum_operator()
61 opdata->shape2.num_dims = values[input2_id].shape.num_dims; in create_maximum_operator()
64 assert(values[input2_id].layout == xnn_layout_type_nchw); in create_maximum_operator()
70 opdata->shape2.dim[0] = values[input2_id].shape.dim[0]; in create_maximum_operator()
71 opdata->shape2.dim[1] = values[input2_id].shape.dim[values[input2_id].shape.num_dims - 1]; in create_maximum_operator()
73 …memcpy(&opdata->shape2.dim[2], &values[input2_id].shape.dim[1], (values[input2_id].shape.num_dims … in create_maximum_operator()
78 assert(values[input2_id].layout == xnn_layout_type_nhwc); in create_maximum_operator()
80 …memcpy(opdata->shape2.dim, values[input2_id].shape.dim, values[input2_id].shape.num_dims * sizeof(… in create_maximum_operator()
[all …]
Dsquared-difference.c33 const uint32_t input2_id = node->inputs[1]; in create_squared_difference_operator() local
34 assert(input2_id != XNN_INVALID_VALUE_ID); in create_squared_difference_operator()
35 assert(input2_id < num_values); in create_squared_difference_operator()
61 opdata->shape2.num_dims = values[input2_id].shape.num_dims; in create_squared_difference_operator()
64 assert(values[input2_id].layout == xnn_layout_type_nchw); in create_squared_difference_operator()
70 opdata->shape2.dim[0] = values[input2_id].shape.dim[0]; in create_squared_difference_operator()
71 opdata->shape2.dim[1] = values[input2_id].shape.dim[values[input2_id].shape.num_dims - 1]; in create_squared_difference_operator()
73 …memcpy(&opdata->shape2.dim[2], &values[input2_id].shape.dim[1], (values[input2_id].shape.num_dims … in create_squared_difference_operator()
78 assert(values[input2_id].layout == xnn_layout_type_nhwc); in create_squared_difference_operator()
80 …memcpy(opdata->shape2.dim, values[input2_id].shape.dim, values[input2_id].shape.num_dims * sizeof(… in create_squared_difference_operator()
[all …]
Ddivide.c32 const uint32_t input2_id = node->inputs[1]; in create_divide_operator() local
33 assert(input2_id != XNN_INVALID_VALUE_ID); in create_divide_operator()
34 assert(input2_id < num_values); in create_divide_operator()
64 opdata->shape2.num_dims = values[input2_id].shape.num_dims; in create_divide_operator()
67 assert(values[input2_id].layout == xnn_layout_type_nchw); in create_divide_operator()
73 opdata->shape2.dim[0] = values[input2_id].shape.dim[0]; in create_divide_operator()
74 opdata->shape2.dim[1] = values[input2_id].shape.dim[values[input2_id].shape.num_dims - 1]; in create_divide_operator()
76 …memcpy(&opdata->shape2.dim[2], &values[input2_id].shape.dim[1], (values[input2_id].shape.num_dims … in create_divide_operator()
81 assert(values[input2_id].layout == xnn_layout_type_nhwc); in create_divide_operator()
83 …memcpy(opdata->shape2.dim, values[input2_id].shape.dim, values[input2_id].shape.num_dims * sizeof(… in create_divide_operator()
[all …]
Dadd2.c32 const uint32_t input2_id = node->inputs[1]; in create_add_operator() local
33 assert(input2_id != XNN_INVALID_VALUE_ID); in create_add_operator()
34 assert(input2_id < num_values); in create_add_operator()
69 (int8_t) values[input2_id].quantization.zero_point, in create_add_operator()
70 values[input2_id].quantization.scale, in create_add_operator()
87 (uint8_t) values[input2_id].quantization.zero_point, in create_add_operator()
88 values[input2_id].quantization.scale, in create_add_operator()
100 opdata->shape2.num_dims = values[input2_id].shape.num_dims; in create_add_operator()
103 assert(values[input2_id].layout == xnn_layout_type_nchw); in create_add_operator()
109 opdata->shape2.dim[0] = values[input2_id].shape.dim[0]; in create_add_operator()
[all …]
Dsubtract.c32 const uint32_t input2_id = node->inputs[1]; in create_subtract_operator() local
33 assert(input2_id != XNN_INVALID_VALUE_ID); in create_subtract_operator()
34 assert(input2_id < num_values); in create_subtract_operator()
69 (int8_t) values[input2_id].quantization.zero_point, in create_subtract_operator()
70 values[input2_id].quantization.scale, in create_subtract_operator()
87 (uint8_t) values[input2_id].quantization.zero_point, in create_subtract_operator()
88 values[input2_id].quantization.scale, in create_subtract_operator()
100 opdata->shape2.num_dims = values[input2_id].shape.num_dims; in create_subtract_operator()
103 assert(values[input2_id].layout == xnn_layout_type_nchw); in create_subtract_operator()
109 opdata->shape2.dim[0] = values[input2_id].shape.dim[0]; in create_subtract_operator()
[all …]
Dmultiply2.c32 const uint32_t input2_id = node->inputs[1]; in create_multiply_operator() local
33 assert(input2_id != XNN_INVALID_VALUE_ID); in create_multiply_operator()
34 assert(input2_id < num_values); in create_multiply_operator()
69 (int8_t) values[input2_id].quantization.zero_point, in create_multiply_operator()
70 values[input2_id].quantization.scale, in create_multiply_operator()
87 (uint8_t) values[input2_id].quantization.zero_point, in create_multiply_operator()
88 values[input2_id].quantization.scale, in create_multiply_operator()
100 opdata->shape2.num_dims = values[input2_id].shape.num_dims; in create_multiply_operator()
103 assert(values[input2_id].layout == xnn_layout_type_nchw); in create_multiply_operator()
109 opdata->shape2.dim[0] = values[input2_id].shape.dim[0]; in create_multiply_operator()
[all …]
Dconcatenate.c60 const uint32_t input2_id = node->inputs[1]; in create_concatenate2_operator() local
61 assert(input2_id != XNN_INVALID_VALUE_ID); in create_concatenate2_operator()
62 assert(input2_id < num_values); in create_concatenate2_operator()
77 channels_2 *= values[input2_id].shape.dim[i]; in create_concatenate2_operator()
92 opdata->inputs[1] = input2_id; in create_concatenate2_operator()
110 const uint32_t input2_id = node->inputs[1]; in create_concatenate3_operator() local
111 assert(input2_id != XNN_INVALID_VALUE_ID); in create_concatenate3_operator()
112 assert(input2_id < num_values); in create_concatenate3_operator()
130 channels_2 *= values[input2_id].shape.dim[i]; in create_concatenate3_operator()
150 opdata->inputs[1] = input2_id; in create_concatenate3_operator()
[all …]
Dvalidation.c129 uint32_t input2_id, in xnn_subgraph_check_datatype_matches_two_inputs() argument
143 xnn_node_type_to_string(node_type), input1_id, input2_id, output_id, in xnn_subgraph_check_datatype_matches_two_inputs()
/external/XNNPACK/test/
Dadd2.cc48 uint32_t input2_id = XNN_INVALID_NODE_ID; in TEST_F() local
52 /*external_id=*/0, /*flags=*/0, &input2_id)); in TEST_F()
53 ASSERT_NE(input2_id, XNN_INVALID_NODE_ID); in TEST_F()
64 … xnn_define_add2(subgraph, output_min, output_max, input1_id, input2_id, output_id, /*flags=*/0)); in TEST_F()
74 ASSERT_EQ(node->inputs[1], input2_id); in TEST_F()
98 uint32_t input2_id = XNN_INVALID_NODE_ID; in TEST_F() local
102 /*external_id=*/0, /*flags=*/0, &input2_id)); in TEST_F()
103 ASSERT_NE(input2_id, XNN_INVALID_NODE_ID); in TEST_F()
114 … xnn_define_add2(subgraph, output_min, output_max, input1_id, input2_id, output_id, /*flags=*/0)); in TEST_F()
124 ASSERT_EQ(node->inputs[1], input2_id); in TEST_F()
[all …]
Dsubtract2.cc49 uint32_t input2_id = XNN_INVALID_NODE_ID; in TEST_F() local
54 /*external_id=*/0, /*flags=*/0, &input2_id)); in TEST_F()
55 ASSERT_NE(input2_id, XNN_INVALID_NODE_ID); in TEST_F()
66 …xnn_define_subtract(subgraph, output_min, output_max, input1_id, input2_id, output_id, /*flags=*/0… in TEST_F()
76 ASSERT_EQ(node->inputs[1], input2_id); in TEST_F()
105 uint32_t input2_id = XNN_INVALID_NODE_ID; in TEST_F() local
110 /*external_id=*/0, /*flags=*/0, &input2_id)); in TEST_F()
111 ASSERT_NE(input2_id, XNN_INVALID_NODE_ID); in TEST_F()
122 …xnn_define_subtract(subgraph, output_min, output_max, input1_id, input2_id, output_id, /*flags=*/0… in TEST_F()
132 ASSERT_EQ(node->inputs[1], input2_id); in TEST_F()
[all …]
Dmultiply2.cc47 uint32_t input2_id = XNN_INVALID_NODE_ID; in TEST_F() local
51 /*external_id=*/0, /*flags=*/0, &input2_id)); in TEST_F()
52 ASSERT_NE(input2_id, XNN_INVALID_NODE_ID); in TEST_F()
63 …xnn_define_multiply2(subgraph, output_min, output_max, input1_id, input2_id, output_id, /*flags=*/… in TEST_F()
73 ASSERT_EQ(node->inputs[1], input2_id); in TEST_F()
101 uint32_t input2_id = XNN_INVALID_NODE_ID; in TEST_F() local
105 /*external_id=*/0, /*flags=*/0, &input2_id)); in TEST_F()
106 ASSERT_NE(input2_id, XNN_INVALID_NODE_ID); in TEST_F()
117 …xnn_define_multiply2(subgraph, output_min, output_max, input1_id, input2_id, output_id, /*flags=*/… in TEST_F()
127 ASSERT_EQ(node->inputs[1], input2_id); in TEST_F()
[all …]
Dconcatenate2.cc100 uint32_t input2_id; member in Concatenate2Test
143 input2_id = XNN_INVALID_NODE_ID; in TEST_F()
148 /*flags=*/XNN_VALUE_FLAG_EXTERNAL_INPUT, &input2_id)); in TEST_F()
149 ASSERT_NE(input2_id, XNN_INVALID_NODE_ID); in TEST_F()
159 …ASSERT_EQ(xnn_status_success, xnn_define_concatenate2(subgraph, axis, input1_id, input2_id, output… in TEST_F()
168 ASSERT_EQ(node->inputs[1], input2_id); in TEST_F()
190 input2_id = XNN_INVALID_NODE_ID; in TEST_F()
195 /*flags=*/XNN_VALUE_FLAG_EXTERNAL_INPUT, &input2_id)); in TEST_F()
196 ASSERT_NE(input2_id, XNN_INVALID_NODE_ID); in TEST_F()
206 …ASSERT_EQ(xnn_status_success, xnn_define_concatenate2(subgraph, axis, input1_id, input2_id, output… in TEST_F()
[all …]
Dmaximum2.cc37 uint32_t input2_id = XNN_INVALID_NODE_ID; in TEST_F() local
41 /*external_id=*/0, /*flags=*/0, &input2_id)); in TEST_F()
42 ASSERT_NE(input2_id, XNN_INVALID_NODE_ID); in TEST_F()
53 xnn_define_maximum2(subgraph, input1_id, input2_id, output_id, /*flags=*/0)); in TEST_F()
61 ASSERT_EQ(node->inputs[1], input2_id); in TEST_F()
96 uint32_t input2_id = XNN_INVALID_NODE_ID; in TEST_F() local
100 /*external_id=*/1, /*flags=*/XNN_VALUE_FLAG_EXTERNAL_INPUT, &input2_id)); in TEST_F()
101 ASSERT_NE(input2_id, XNN_INVALID_NODE_ID); in TEST_F()
113 xnn_define_maximum2(subgraph, input1_id, input2_id, output_id, /*flags=*/0)); in TEST_F()
120 xnn_external_value{input1_id, input1.data()}, xnn_external_value{input2_id, input2.data()}, in TEST_F()
Dminimum2.cc37 uint32_t input2_id = XNN_INVALID_NODE_ID; in TEST_F() local
41 /*external_id=*/0, /*flags=*/0, &input2_id)); in TEST_F()
42 ASSERT_NE(input2_id, XNN_INVALID_NODE_ID); in TEST_F()
53 xnn_define_minimum2(subgraph, input1_id, input2_id, output_id, /*flags=*/0)); in TEST_F()
61 ASSERT_EQ(node->inputs[1], input2_id); in TEST_F()
96 uint32_t input2_id = XNN_INVALID_NODE_ID; in TEST_F() local
100 /*external_id=*/1, /*flags=*/XNN_VALUE_FLAG_EXTERNAL_INPUT, &input2_id)); in TEST_F()
101 ASSERT_NE(input2_id, XNN_INVALID_NODE_ID); in TEST_F()
113 xnn_define_minimum2(subgraph, input1_id, input2_id, output_id, /*flags=*/0)); in TEST_F()
120 xnn_external_value{input1_id, input1.data()}, xnn_external_value{input2_id, input2.data()}, in TEST_F()
Ddivide2.cc40 uint32_t input2_id = XNN_INVALID_NODE_ID; in TEST_F() local
44 /*external_id=*/0, /*flags=*/0, &input2_id)); in TEST_F()
45 ASSERT_NE(input2_id, XNN_INVALID_NODE_ID); in TEST_F()
56 …xnn_define_divide(subgraph, output_min, output_max, input1_id, input2_id, output_id, /*flags=*/0)); in TEST_F()
66 ASSERT_EQ(node->inputs[1], input2_id); in TEST_F()
106 uint32_t input2_id = XNN_INVALID_NODE_ID; in TEST_F() local
110 /*external_id=*/1, /*flags=*/XNN_VALUE_FLAG_EXTERNAL_INPUT, &input2_id)); in TEST_F()
111 ASSERT_NE(input2_id, XNN_INVALID_NODE_ID); in TEST_F()
123 …xnn_define_divide(subgraph, output_min, output_max, input1_id, input2_id, output_id, /*flags=*/0)); in TEST_F()
130 xnn_external_value{input1_id, input1.data()}, xnn_external_value{input2_id, input2.data()}, in TEST_F()
Dsquared-difference.cc43 uint32_t input2_id = XNN_INVALID_NODE_ID; in TEST_F() local
47 /*external_id=*/0, /*flags=*/0, &input2_id)); in TEST_F()
48 ASSERT_NE(input2_id, XNN_INVALID_NODE_ID); in TEST_F()
59 xnn_define_squared_difference(subgraph, input1_id, input2_id, output_id, /*flags=*/0)); in TEST_F()
67 ASSERT_EQ(node->inputs[1], input2_id); in TEST_F()
107 uint32_t input2_id = XNN_INVALID_NODE_ID; in TEST_F() local
111 /*external_id=*/1, /*flags=*/XNN_VALUE_FLAG_EXTERNAL_INPUT, &input2_id)); in TEST_F()
112 ASSERT_NE(input2_id, XNN_INVALID_NODE_ID); in TEST_F()
124 xnn_define_squared_difference(subgraph, input1_id, input2_id, output_id, /*flags=*/0)); in TEST_F()
131 xnn_external_value{input1_id, input1.data()}, xnn_external_value{input2_id, input2.data()}, in TEST_F()
Dconcatenate3.cc104 uint32_t input2_id; member in Concatenate3Test
151 input2_id = XNN_INVALID_NODE_ID; in TEST_F()
156 /*flags=*/XNN_VALUE_FLAG_EXTERNAL_INPUT, &input2_id)); in TEST_F()
157 ASSERT_NE(input2_id, XNN_INVALID_NODE_ID); in TEST_F()
177 … xnn_define_concatenate3(subgraph, axis, input1_id, input2_id, input3_id, output_id, /*flags=*/0)); in TEST_F()
186 ASSERT_EQ(node->inputs[1], input2_id); in TEST_F()
209 input2_id = XNN_INVALID_NODE_ID; in TEST_F()
214 /*flags=*/XNN_VALUE_FLAG_EXTERNAL_INPUT, &input2_id)); in TEST_F()
215 ASSERT_NE(input2_id, XNN_INVALID_NODE_ID); in TEST_F()
235 … xnn_define_concatenate3(subgraph, axis, input1_id, input2_id, input3_id, output_id, /*flags=*/0)); in TEST_F()
[all …]
Dconcatenate4.cc108 uint32_t input2_id; member in Concatenate4Test
159 input2_id = XNN_INVALID_NODE_ID; in TEST_F()
164 /*flags=*/XNN_VALUE_FLAG_EXTERNAL_INPUT, &input2_id)); in TEST_F()
165 ASSERT_NE(input2_id, XNN_INVALID_NODE_ID); in TEST_F()
193 …xnn_define_concatenate4(subgraph, axis, input1_id, input2_id, input3_id, input4_id, output_id, /*f… in TEST_F()
202 ASSERT_EQ(node->inputs[1], input2_id); in TEST_F()
226 input2_id = XNN_INVALID_NODE_ID; in TEST_F()
231 /*flags=*/XNN_VALUE_FLAG_EXTERNAL_INPUT, &input2_id)); in TEST_F()
232 ASSERT_NE(input2_id, XNN_INVALID_NODE_ID); in TEST_F()
260 …xnn_define_concatenate4(subgraph, axis, input1_id, input2_id, input3_id, input4_id, output_id, /*f… in TEST_F()
[all …]
Dfusion.cc19 uint32_t input2_id = 1; in TEST() local
24 .AddInputTensorF32({1, 2, 2, 3}, input2_id) in TEST()
27 .AddAddition(input1_id, input2_id, intermediate_id) in TEST()
150 uint32_t input2_id = 1; in TEST() local
155 .AddInputTensorF32({1, 2, 2, 3}, input2_id) in TEST()
158 .AddDivide(input1_id, input2_id, intermediate_id) in TEST()
294 uint32_t input2_id = 1; in TEST() local
299 .AddInputTensorF32({1, 2, 2, 3}, input2_id) in TEST()
302 .AddMultiply(input1_id, input2_id, intermediate_id) in TEST()
352 uint32_t input2_id = 1; in TEST() local
[all …]
/external/XNNPACK/src/xnnpack/
Dsubgraph-validation.h46 uint32_t input2_id,
/external/XNNPACK/include/
Dxnnpack.h750 uint32_t input2_id,
778 uint32_t input2_id,
806 uint32_t input2_id,
834 uint32_t input2_id,
858 uint32_t input2_id,
882 uint32_t input2_id,
907 uint32_t input2_id,
952 uint32_t input2_id,
979 uint32_t input2_id,
1010 uint32_t input2_id,