Home
last modified time | relevance | path

Searched refs:ArrayFloatNear (Results 1 – 25 of 51) sorted by relevance

123

/external/tensorflow/tensorflow/lite/kernels/
Dresize_nearest_neighbor_test.cc72 ElementsAreArray(ArrayFloatNear({3, 3, 6}))); in TEST()
79 ElementsAreArray(ArrayFloatNear({3, 3, 6}))); in TEST()
88 ElementsAreArray(ArrayFloatNear({3, 3, 6}))); in TEST()
95 ElementsAreArray(ArrayFloatNear({3, 3, 6}))); in TEST()
104 ElementsAreArray(ArrayFloatNear({-3, -3, 6}))); in TEST()
110 ElementsAreArray(ArrayFloatNear({-3, -3, 6}))); in TEST()
119 ElementsAreArray(ArrayFloatNear({3, 3, 9}))); in TEST()
126 ElementsAreArray(ArrayFloatNear({3, 3, 9}))); in TEST()
135 ElementsAreArray(ArrayFloatNear({3, 3, 9}))); in TEST()
142 ElementsAreArray(ArrayFloatNear({3, 3, 9}))); in TEST()
[all …]
Dresize_bilinear_test.cc72 ElementsAreArray(ArrayFloatNear({3, 5, 6}))); in TEST()
78 ElementsAreArray(ArrayFloatNear({3, 5, 6}))); in TEST()
87 ElementsAreArray(ArrayFloatNear({3, 5, 6}))); in TEST()
93 ElementsAreArray(ArrayFloatNear({3, 5, 6}))); in TEST()
102 ElementsAreArray(ArrayFloatNear({3, 5, 6}))); in TEST()
108 ElementsAreArray(ArrayFloatNear({3, 5, 6}))); in TEST()
117 ElementsAreArray(ArrayFloatNear({3, 7, 9}))); in TEST()
123 ElementsAreArray(ArrayFloatNear({3, 7, 9}))); in TEST()
132 ElementsAreArray(ArrayFloatNear({3, 7, 9}))); in TEST()
138 ElementsAreArray(ArrayFloatNear({3, 7, 9}))); in TEST()
[all …]
Dactivations_test.cc129 EXPECT_THAT(m.GetOutput(), ElementsAreArray(ArrayFloatNear({ in TEST()
185 EXPECT_THAT(m.GetOutput(), ElementsAreArray(ArrayFloatNear({ in TEST()
204 ElementsAreArray(ArrayFloatNear( in TEST()
226 EXPECT_THAT(m.GetDequantizedOutput<int8_t>(), ElementsAreArray(ArrayFloatNear( in TEST()
249 ElementsAreArray(ArrayFloatNear( in TEST()
272 ElementsAreArray(ArrayFloatNear( in TEST()
295 ElementsAreArray(ArrayFloatNear( in TEST()
311 EXPECT_THAT(m.GetOutput(), ElementsAreArray(ArrayFloatNear({ in TEST()
327 ElementsAreArray(ArrayFloatNear( in TEST()
347 ElementsAreArray(ArrayFloatNear( in TEST()
[all …]
Dreduce_test.cc244 EXPECT_THAT(m.GetOutput<float>(), ElementsAreArray(ArrayFloatNear({12, 13}))); in TEST()
257 ElementsAreArray(ArrayFloatNear({10.5, 12.5, 14.5}))); in TEST()
272 ElementsAreArray(ArrayFloatNear({6, 7, 18, 19}))); in TEST()
285 ElementsAreArray(ArrayFloatNear({0.25098, 0.25098, 0.25098}, in TEST()
301 ElementsAreArray(ArrayFloatNear( in TEST()
317 ArrayFloatNear({0.235294, 0.313726}, kQuantizedTolerance))); in TEST()
327 EXPECT_THAT(m.GetOutput<float>(), ElementsAreArray(ArrayFloatNear({3.27}))); in TEST()
342 EXPECT_THAT(m.GetOutput<float>(), ElementsAreArray(ArrayFloatNear({12, 13}))); in TEST()
358 ElementsAreArray(ArrayFloatNear({10.5, 12.5, 14.5}))); in TEST()
370 EXPECT_THAT(m.GetOutput<float>(), ElementsAreArray(ArrayFloatNear({9.527}))); in TEST()
[all …]
Ddetection_postprocess_test.cc169 ElementsAreArray(ArrayFloatNear( in TEST()
176 ElementsAreArray(ArrayFloatNear({1, 0, 0}, 1e-1))); in TEST()
181 ElementsAreArray(ArrayFloatNear({0.95, 0.9, 0.3}, 1e-1))); in TEST()
186 ElementsAreArray(ArrayFloatNear({3.0}, 1e-1))); in TEST()
228 ElementsAreArray(ArrayFloatNear( in TEST()
235 ElementsAreArray(ArrayFloatNear({1, 0, 0}, 1e-1))); in TEST()
240 ElementsAreArray(ArrayFloatNear({0.95, 0.9, 0.3}, 1e-1))); in TEST()
245 ElementsAreArray(ArrayFloatNear({3.0}, 1e-1))); in TEST()
380 ElementsAreArray(ArrayFloatNear( in TEST()
387 ElementsAreArray(ArrayFloatNear({1, 0, 0}, 1e-1))); in TEST()
[all …]
Dgather_test.cc75 ElementsAreArray(ArrayFloatNear({0.7, 0.8, -2, 0.2}))); in TEST()
84 ElementsAreArray(ArrayFloatNear({0.7, 0.8}))); in TEST()
95 EXPECT_THAT(m.GetOutput<float>(), ElementsAreArray(ArrayFloatNear({2.0}))); in TEST()
104 EXPECT_THAT(m.GetOutput<float>(), ElementsAreArray(ArrayFloatNear({3.0}))); in TEST()
114 ElementsAreArray(ArrayFloatNear({2.0, 1.0}))); in TEST()
125 ElementsAreArray(ArrayFloatNear({-2, 0.2, 0.7, 0.8, -2, 0.2, 0.7, 0.8}))); in TEST()
134 ElementsAreArray(ArrayFloatNear({0.2, 0.8}))); in TEST()
145 ElementsAreArray(ArrayFloatNear({4, 5, 6, 1, 2, 3}))); in TEST()
156 EXPECT_THAT(m.GetOutput<float>(), ElementsAreArray(ArrayFloatNear({3, 4}))); in TEST()
168 ElementsAreArray(ArrayFloatNear({7, 8, 3, 4}))); in TEST()
[all …]
Dembedding_lookup_test.cc105 ElementsAreArray(ArrayFloatNear({ in TEST()
124 ElementsAreArray(ArrayFloatNear( in TEST()
145 ElementsAreArray(ArrayFloatNear( in TEST()
166 ElementsAreArray(ArrayFloatNear( in TEST()
187 ElementsAreArray(ArrayFloatNear( in TEST()
208 ElementsAreArray(ArrayFloatNear( in TEST()
229 ElementsAreArray(ArrayFloatNear( in TEST()
Dsub_test.cc97 ElementsAreArray(ArrayFloatNear({-2.1, 0.0, 1.4, -0.3}))); in TEST()
108 ElementsAreArray(ArrayFloatNear({-1.0, 0.0, 1.0, -0.3}))); in TEST()
123 ElementsAreArray(ArrayFloatNear({-2.1, 0.0, 1.4, -0.3, 0.0, 1.9}))) in TEST()
140 ElementsAreArray(ArrayFloatNear({-2.5, -0.3, 1.2, 0.0, -1.6, 1.5}))) in TEST()
191 ElementsAreArray(ArrayFloatNear({-21, 1, 6, 7, 10, 19}))) in TEST()
216 ElementsAreArray(ArrayFloatNear(results[i], kQuantizedTolerance))) in QuantizedTestsNoActivation()
248 ElementsAreArray(ArrayFloatNear(results[i], kQuantizedTolerance))) in QuantizedTestsActivationRELU_N1_TO_1()
276 ElementsAreArray(ArrayFloatNear( in QuantizedVariousInputShapes()
304 ElementsAreArray(ArrayFloatNear( in QuantizedWithBroadcast()
340 ElementsAreArray(ArrayFloatNear(results[i], kQuantizedTolerance))) in TEST()
[all …]
Delementwise_test.cc64 ElementsAreArray(ArrayFloatNear({0, 0, 0, 0.84147}))); in TEST()
73 ElementsAreArray(ArrayFloatNear({1, -1, -1, 0.54030}))); in TEST()
82 ElementsAreArray(ArrayFloatNear({0, 1.14473, 0, 0}))); in TEST()
104 ElementsAreArray(ArrayFloatNear({0, 1, 1.41421, 2}))); in TEST()
113 ElementsAreArray(ArrayFloatNear({1, 0.7071, 0.5, 0.33333}))); in TEST()
122 ElementsAreArray(ArrayFloatNear({1, 4.0, 0.25, 9.0}))); in TEST()
Dmul_test.cc96 ElementsAreArray(ArrayFloatNear({-0.2, 0.04, 0.21, 0.4}))); in TEST()
107 ElementsAreArray(ArrayFloatNear({-0.2, 0.04, 0.21, 1.0}))); in TEST()
122 ElementsAreArray(ArrayFloatNear({-0.2, 0.04, 0.21, 0.4, 1.21, 0.2}))) in TEST()
139 ElementsAreArray(ArrayFloatNear({-0.2, 0.02, 0.07, 0.08, 0.11, 0.2}))) in TEST()
190 ElementsAreArray(ArrayFloatNear({-20, 2, 7, 8, 11, 20}))) in TEST()
205 ElementsAreArray(ArrayFloatNear({-0.48, 0.08, 0.81, 0.56}, in NoActivation()
228 ElementsAreArray(ArrayFloatNear({-0.48, 0.08, 0.81, 0.56}, in TEST()
246 ElementsAreArray(ArrayFloatNear({-0.48, 0.08, 0.81, 0.56}, in NoActivationInt16With8BitOutput()
280 ElementsAreArray(ArrayFloatNear( in WithBroadcast()
Dlocal_response_norm_test.cc59 ElementsAreArray(ArrayFloatNear({-0.55, 0.3, 0.35, 0.6, -0.35, 0.05}))); in TEST()
68 EXPECT_THAT(m.GetOutput(), ElementsAreArray(ArrayFloatNear( in TEST()
80 ElementsAreArray(ArrayFloatNear({-0.22, 0.12, 0.14, 0.24, -0.14, 0.02}))); in TEST()
90 ElementsAreArray(ArrayFloatNear( in TEST()
Dpooling_test.cc146 ElementsAreArray(ArrayFloatNear({2.75, 5.75}))); in TEST()
165 EXPECT_THAT(m.GetDequantizedOutput(), ElementsAreArray(ArrayFloatNear({16}))); in TEST()
188 ElementsAreArray(ArrayFloatNear( in TEST()
212 ElementsAreArray(ArrayFloatNear({2.75, 5.75}))); in TEST()
265 ElementsAreArray(ArrayFloatNear({6, 10}))); in TEST()
289 ElementsAreArray(ArrayFloatNear( in TEST()
309 ElementsAreArray(ArrayFloatNear({3, 7}))); in TEST()
Dadd_test.cc137 ElementsAreArray(ArrayFloatNear({-1.9, 0.3, 0.8, 0.9, 1.2, 2.1}))) in TEST()
188 ElementsAreArray(ArrayFloatNear({-19, 3, 8, 9, 12, 21}))) in TEST()
212 ElementsAreArray(ArrayFloatNear(results[i], kQuantizedTolerance))) in QuantizedTestsNoActivation()
245 ElementsAreArray(ArrayFloatNear(results[i], kQuantizedTolerance))) in TEST()
269 ElementsAreArray(ArrayFloatNear(results[i], kQuantizedTolerance))) in QuantizedTestsActivationRELU_N1_TO_1()
298 ElementsAreArray(ArrayFloatNear({-1.9, 0.5, 1.0, 1.3, 2.2, 2.1}, in QuantizedVariousInputShapes()
328 ElementsAreArray(ArrayFloatNear({-1.9f, 0.3f, 0.8f, 0.9f, 1.2f, 2.1f}, in QuantizedWithScalarBroadcast()
344 ElementsAreArray(ArrayFloatNear({-1.9f, 0.3f, 0.8f, 0.9f, 1.2f, 2.1f}, in QuantizedWithScalarBroadcast()
390 ElementsAreArray(ArrayFloatNear(test_outputs[i], kQuantizedTolerance))) in QuantizedWithMixedBroadcast()
407 ElementsAreArray(ArrayFloatNear(test_outputs[i], kQuantizedTolerance))) in QuantizedWithMixedBroadcast()
Dfake_quant_test.cc63 ElementsAreArray(ArrayFloatNear({0, 1, 0.25098, 0.498039, 0.443137, 0}))); in TEST()
75 ElementsAreArray(ArrayFloatNear( in TEST()
88 ElementsAreArray(ArrayFloatNear( in TEST()
101 ElementsAreArray(ArrayFloatNear( in TEST()
Dconv_test.cc640 ElementsAreArray(ArrayFloatNear( in TEST_P()
692 ElementsAreArray(ArrayFloatNear(float_op.GetOutput(), 1))); in TEST_P()
712 EXPECT_THAT(m.GetDequantizedOutput(), ElementsAreArray(ArrayFloatNear({ in TEST_P()
854 EXPECT_THAT(m.GetOutput(), ElementsAreArray(ArrayFloatNear( in TEST_P()
891 EXPECT_THAT(m.GetOutput(), ElementsAreArray(ArrayFloatNear( in TEST_P()
933 ElementsAreArray(ArrayFloatNear( in TEST_P()
987 EXPECT_THAT(m.GetOutput(), ElementsAreArray(ArrayFloatNear( in TEST_P()
1024 EXPECT_THAT(m.GetOutput(), ElementsAreArray(ArrayFloatNear( in TEST_P()
1066 ElementsAreArray(ArrayFloatNear( in TEST_P()
1101 ElementsAreArray(ArrayFloatNear( in TEST_P()
[all …]
Dl2norm_test.cc106 ArrayFloatNear({-0.55, 0.3, 0.35, 0.6, -0.35, 0.05}, 0.1))); in TEST()
119 ArrayFloatNear({-0.55, 0.3, 0.35, 0.6, -0.35, 0.05}, 0.1))); in TEST()
139 ElementsAreArray(ArrayFloatNear( in TEST()
164 ElementsAreArray(ArrayFloatNear( in TEST()
Dembedding_lookup_sparse_test.cc95 ElementsAreArray(ArrayFloatNear({ in TEST()
111 ElementsAreArray(ArrayFloatNear({ in TEST()
127 ElementsAreArray(ArrayFloatNear({ in TEST()
147 ElementsAreArray(ArrayFloatNear({ in TEST()
Dbidirectional_sequence_rnn_test.cc812 EXPECT_THAT(rnn.GetFwOutput(), ElementsAreArray(ArrayFloatNear(fw_expected))); in TEST()
820 EXPECT_THAT(rnn.GetBwOutput(), ElementsAreArray(ArrayFloatNear(bw_expected))); in TEST()
857 EXPECT_THAT(rnn.GetFwOutput(), ElementsAreArray(ArrayFloatNear(fw_expected))); in TEST()
896 ElementsAreArray(ArrayFloatNear(merged_expected))); in TEST()
940 ElementsAreArray(ArrayFloatNear(merged_expected))); in TEST()
979 EXPECT_THAT(rnn.GetFwOutput(), ElementsAreArray(ArrayFloatNear(fw_expected))); in TEST()
988 EXPECT_THAT(rnn.GetBwOutput(), ElementsAreArray(ArrayFloatNear(bw_expected))); in TEST()
1060 EXPECT_THAT(sequence_result, ElementsAreArray(ArrayFloatNear(expected))); in TEST()
1101 EXPECT_THAT(rnn.GetFwOutput(), ElementsAreArray(ArrayFloatNear(fw_expected))); in TEST()
1146 EXPECT_THAT(rnn.GetFwOutput(), ElementsAreArray(ArrayFloatNear(fw_expected))); in TEST()
[all …]
Dfully_connected_test.cc453 ElementsAreArray(ArrayFloatNear({ in TEST_P()
483 ElementsAreArray(ArrayFloatNear({24, 25, 26, 58, 59, 60}))); in TEST_P()
510 ElementsAreArray(ArrayFloatNear({ in TEST_P()
541 ElementsAreArray(ArrayFloatNear({ in TEST_P()
632 ElementsAreArray(ArrayFloatNear(expected_output_data, 3e-4f))); in SimpleTestQuantizedInt16OutputCase()
692 EXPECT_THAT(m.GetOutput(), ElementsAreArray(ArrayFloatNear( in TEST()
720 EXPECT_THAT(m.GetOutput(), ElementsAreArray(ArrayFloatNear( in TEST()
777 ElementsAreArray(ArrayFloatNear({ in TEST_P()
808 ElementsAreArray(ArrayFloatNear({ in TEST_P()
875 EXPECT_THAT(m.GetOutput(), ElementsAreArray(ArrayFloatNear(expected))); in TEST_P()
Dtopk_v2_test.cc99 ElementsAreArray(ArrayFloatNear({0.2, -2.0, 0.8, 0.1}))); in TEST()
109 ElementsAreArray(ArrayFloatNear({0.2, -2.0, 0.8, 0.1}))); in TEST()
118 ElementsAreArray(ArrayFloatNear({0.2, -2.0, 0.8, 0.1}))); in TEST()
127 EXPECT_THAT(m.GetValuesFloat(), ElementsAreArray(ArrayFloatNear({0.8, 0.2}))); in TEST()
/external/tensorflow/tensorflow/lite/toco/graph_transformations/tests/
Dlstm_utils_test.cc30 std::vector<testing::Matcher<float>> ArrayFloatNear( in ArrayFloatNear() function
120 EXPECT_THAT(GetDstBuffer()->data, ElementsAreArray(ArrayFloatNear(expected))); in TEST_F()
130 EXPECT_THAT(GetDstBuffer()->data, ElementsAreArray(ArrayFloatNear(expected))); in TEST_F()
140 EXPECT_THAT(GetDstBuffer()->data, ElementsAreArray(ArrayFloatNear(expected))); in TEST_F()
150 EXPECT_THAT(GetDstBuffer()->data, ElementsAreArray(ArrayFloatNear(expected))); in TEST_F()
168 EXPECT_THAT(GetDstBuffer()->data, ElementsAreArray(ArrayFloatNear(expected))); in TEST_F()
179 EXPECT_THAT(GetDstBuffer()->data, ElementsAreArray(ArrayFloatNear(expected))); in TEST_F()
190 EXPECT_THAT(GetDstBuffer()->data, ElementsAreArray(ArrayFloatNear(expected))); in TEST_F()
201 EXPECT_THAT(GetDstBuffer()->data, ElementsAreArray(ArrayFloatNear(expected))); in TEST_F()
224 EXPECT_THAT(GetDstBuffer()->data, ElementsAreArray(ArrayFloatNear(expected))); in TEST_F()
[all …]
Dresolve_constant_concatenation_test.cc29 std::vector<testing::Matcher<float>> ArrayFloatNear( in ArrayFloatNear() function
177 ElementsAreArray(ArrayFloatNear( in TEST_F()
199 ElementsAreArray(ArrayFloatNear( in TEST_F()
221 ElementsAreArray(ArrayFloatNear( in TEST_F()
/external/tensorflow/tensorflow/lite/kernels/internal/
Dtensor_utils_test.cc35 ElementsAreArray(ArrayFloatNear( in TEST()
49 ElementsAreArray(ArrayFloatNear( in TEST()
137 EXPECT_THAT(output, ElementsAreArray(ArrayFloatNear({1., 5., 13., // in TEST()
146 ElementsAreArray(ArrayFloatNear({1., 3., 5., 3., 13., 3., // in TEST()
547 EXPECT_THAT(dense_output, ElementsAreArray(ArrayFloatNear( in TEST()
558 ElementsAreArray(ArrayFloatNear(dense_output, 1e-4))); in TEST()
632 ElementsAreArray(ArrayFloatNear( in TEST()
643 ElementsAreArray(ArrayFloatNear( in TEST()
658 ElementsAreArray(ArrayFloatNear( in TEST()
673 ElementsAreArray(ArrayFloatNear( in TEST()
[all …]
/external/tensorflow/tensorflow/lite/models/smartreply/ops/
Dpredict_test.cc116 EXPECT_THAT(m.GetWeight(), ElementsAreArray(ArrayFloatNear({0.1, 0.05}))); in TEST()
127 EXPECT_THAT(m.GetWeight(), ElementsAreArray(ArrayFloatNear({0.1}))); in TEST()
138 EXPECT_THAT(m.GetWeight(), ElementsAreArray(ArrayFloatNear({0.1, 0}))); in TEST()
149 EXPECT_THAT(m.GetWeight(), ElementsAreArray(ArrayFloatNear({0, 0}))); in TEST()
160 EXPECT_THAT(m.GetWeight(), ElementsAreArray(ArrayFloatNear({0.05, 0}))); in TEST()
171 EXPECT_THAT(m.GetWeight(), ElementsAreArray(ArrayFloatNear({0, 0}))); in TEST()
/external/tensorflow/tensorflow/lite/delegates/nnapi/
Dnnapi_delegate_test.cc193 ElementsAreArray(ArrayFloatNear({-0.2, 0.04, 0.21, 0.4}))); in TEST()
369 EXPECT_THAT(m.GetOutput(), ElementsAreArray(ArrayFloatNear( in TEST()
407 EXPECT_THAT(m.GetOutput(), ElementsAreArray(ArrayFloatNear( in TEST()
621 ElementsAreArray(ArrayFloatNear({24, 25, 26, 58, 59, 60}, 1.3))); in TEST()
665 ElementsAreArray(ArrayFloatNear( in TEST()
867 ElementsAreArray(ArrayFloatNear({-2.1, 0.0, 0.4, 0.3}))); in TEST()
901 EXPECT_THAT(m.GetOutput(), ElementsAreArray(ArrayFloatNear({-20, 1, 2, 4}))); in TEST()
1000 ElementsAreArray(ArrayFloatNear({ in TEST()
1024 ElementsAreArray(ArrayFloatNear({ in TEST()
1064 ElementsAreArray(ArrayFloatNear( in TEST()
[all …]

123