Home
last modified time | relevance | path

Searched refs:TF_LITE_MICRO_EXPECT_NEAR (Results 1 – 25 of 40) sorted by relevance

12

/external/tensorflow/tensorflow/lite/micro/kernels/
Dquantization_util_test.cc207 TF_LITE_MICRO_EXPECT_NEAR(qp.scale, 0.156863, 1e-5); in TF_LITE_MICRO_TEST()
215 TF_LITE_MICRO_EXPECT_NEAR(qp.scale, 0.117647, 1e-5); in TF_LITE_MICRO_TEST()
223 TF_LITE_MICRO_EXPECT_NEAR(qp.scale, 0.0, 1e-5); in TF_LITE_MICRO_TEST()
231 TF_LITE_MICRO_EXPECT_NEAR(qp.scale, 0.039216, 1e-5); in TF_LITE_MICRO_TEST()
242 TF_LITE_MICRO_EXPECT_NEAR(0x40000000, result, 1ll); in TF_LITE_MICRO_TEST()
246 TF_LITE_MICRO_EXPECT_NEAR(0x40000000, result, 1ll); in TF_LITE_MICRO_TEST()
250 TF_LITE_MICRO_EXPECT_NEAR(-(1 << 30), result, 1ll); in TF_LITE_MICRO_TEST()
254 TF_LITE_MICRO_EXPECT_NEAR(2071147315, result, 1ll); in TF_LITE_MICRO_TEST()
258 TF_LITE_MICRO_EXPECT_NEAR(0, result, 1); in TF_LITE_MICRO_TEST()
262 TF_LITE_MICRO_EXPECT_NEAR(std::numeric_limits<int64_t>::max(), result, 1); in TF_LITE_MICRO_TEST()
[all …]
Dsplit_test.cc73 TF_LITE_MICRO_EXPECT_NEAR(expected_output1_data[i], output1_data[i], 1e-5f); in TestSplitTwoOutputsFloat()
77 TF_LITE_MICRO_EXPECT_NEAR(expected_output2_data[i], output2_data[i], 1e-5f); in TestSplitTwoOutputsFloat()
142 TF_LITE_MICRO_EXPECT_NEAR(expected_output1_data[i], output1_data[i], 1e-5f); in TestSplitFourOutputsFloat()
145 TF_LITE_MICRO_EXPECT_NEAR(expected_output2_data[i], output2_data[i], 1e-5f); in TestSplitFourOutputsFloat()
148 TF_LITE_MICRO_EXPECT_NEAR(expected_output3_data[i], output3_data[i], 1e-5f); in TestSplitFourOutputsFloat()
151 TF_LITE_MICRO_EXPECT_NEAR(expected_output4_data[i], output4_data[i], 1e-5f); in TestSplitFourOutputsFloat()
Dunpack_test.cc81 TF_LITE_MICRO_EXPECT_NEAR(expected_output1_data[i], output1_data[i], 1e-5f); in TestUnpackThreeOutputsFloat()
85 TF_LITE_MICRO_EXPECT_NEAR(expected_output2_data[i], output2_data[i], 1e-5f); in TestUnpackThreeOutputsFloat()
89 TF_LITE_MICRO_EXPECT_NEAR(expected_output3_data[i], output3_data[i], 1e-5f); in TestUnpackThreeOutputsFloat()
132 TF_LITE_MICRO_EXPECT_NEAR(expected_output_data[i], output_data[i], 1e-5f); in TestUnpackOneOutputFloat()
Dtanh_test.cc97 TF_LITE_MICRO_EXPECT_NEAR(expected_output_data[i], output_data[i], in TestTanhFloat()
140 TF_LITE_MICRO_EXPECT_NEAR(expected_output_quantized[i], output_quantized[i], in TestTanhQuantized()
Ddetection_postprocess_test.cc200 TF_LITE_MICRO_EXPECT_NEAR(golden1[i], output_data1[i], tolerance); in TestDetectionPostprocess()
203 TF_LITE_MICRO_EXPECT_NEAR(golden2[i], output_data2[i], tolerance); in TestDetectionPostprocess()
206 TF_LITE_MICRO_EXPECT_NEAR(golden3[i], output_data3[i], tolerance); in TestDetectionPostprocess()
209 TF_LITE_MICRO_EXPECT_NEAR(golden4[i], output_data4[i], tolerance); in TestDetectionPostprocess()
Dround_test.cc53 TF_LITE_MICRO_EXPECT_NEAR(expected_output_data[i], output_data[i], 1e-5f); in TestRound()
Dceil_test.cc54 TF_LITE_MICRO_EXPECT_NEAR(expected_output_data[i], output_data[i], 1e-5f); in TestCeil()
Dexp_test.cc54 TF_LITE_MICRO_EXPECT_NEAR(expected_output_data[i], output_data[i], 1e-5f); in TestExp()
Dfloor_test.cc54 TF_LITE_MICRO_EXPECT_NEAR(expected_output_data[i], output_data[i], 1e-5f); in TestFloor()
Ddequantize_test.cc45 TF_LITE_MICRO_EXPECT_NEAR(expected_output_data[i], output_data[i], 0.001f); in ValidateDequantizeGoldens()
Dactivations_test.cc56 TF_LITE_MICRO_EXPECT_NEAR(golden[i], output_data[i], 1e-5f); in TestReluFloat()
89 TF_LITE_MICRO_EXPECT_NEAR(golden[i], output_data[i], 1e-5f); in TestRelu6Float()
Dhard_swish_test.cc120 TF_LITE_MICRO_EXPECT_NEAR(float_ref_output_values[i], dequantized_output[i], in TestHardSwishQuantized()
248 TF_LITE_MICRO_EXPECT_NEAR(float_ref_output_values[i], output_data[i], in TestHardSwishFloat()
Dconcatenation_test.cc66 TF_LITE_MICRO_EXPECT_NEAR(expected_output_data[i], output_data[i], 1e-5f); in TestConcatenateTwoInputs()
Dprelu_test.cc44 TF_LITE_MICRO_EXPECT_NEAR(golden[i], output_data[i], 1e-5f); in ValidatePreluGoldens()
Dlogistic_test.cc67 TF_LITE_MICRO_EXPECT_NEAR(golden[i], output_data[i], tolerance); in ValidateLogisticGoldens()
Delementwise_test.cc59 TF_LITE_MICRO_EXPECT_NEAR(expected_output_data[i], output_data[i], 1e-5f); in TestElementwiseFloat()
Dmaximum_minimum_test.cc59 TF_LITE_MICRO_EXPECT_NEAR(expected_output_data[i], output_data[i], 1e-5f); in TestMaxMinFloat()
Dpack_test.cc44 TF_LITE_MICRO_EXPECT_NEAR(golden[i], output[i], tolerance); in ValidatePackGoldens()
Dconv_test_common.cc54 TF_LITE_MICRO_EXPECT_NEAR(expected_output_data[i], output_data[i], in ValidateConvGoldens()
Dmul_test.cc66 TF_LITE_MICRO_EXPECT_NEAR(golden[i], output[i], tolerance); in ValidateMulGoldens()
/external/tensorflow/tensorflow/lite/micro/testing/
Dutil_test.cc23 TF_LITE_MICRO_EXPECT_NEAR(0, count++, 0.1f); in TF_LITE_MICRO_TEST()
24 TF_LITE_MICRO_EXPECT_NEAR(1, count++, 0.1f); in TF_LITE_MICRO_TEST()
25 TF_LITE_MICRO_EXPECT_NEAR(count++, 2, 0.1f); in TF_LITE_MICRO_TEST()
26 TF_LITE_MICRO_EXPECT_NEAR(count++, 3, 0.1f); in TF_LITE_MICRO_TEST()
Dmicro_test.h162 #define TF_LITE_MICRO_EXPECT_NEAR(x, y, epsilon) \ macro
/external/tensorflow/tensorflow/lite/micro/examples/hello_world/
Dhello_world_test.cc106 TF_LITE_MICRO_EXPECT_NEAR(y_true, y_pred, epsilon); in TF_LITE_MICRO_TEST()
114 TF_LITE_MICRO_EXPECT_NEAR(y_true, y_pred, epsilon); in TF_LITE_MICRO_TEST()
121 TF_LITE_MICRO_EXPECT_NEAR(y_true, y_pred, epsilon); in TF_LITE_MICRO_TEST()
128 TF_LITE_MICRO_EXPECT_NEAR(y_true, y_pred, epsilon); in TF_LITE_MICRO_TEST()
/external/tensorflow/tensorflow/lite/g3doc/microcontrollers/
Dget_started.md309 TF_LITE_MICRO_EXPECT_NEAR(0., value, 0.05);
322 TF_LITE_MICRO_EXPECT_NEAR(0.841, value, 0.05);
327 TF_LITE_MICRO_EXPECT_NEAR(0.141, value, 0.05);
332 TF_LITE_MICRO_EXPECT_NEAR(-0.959, value, 0.05);
/external/tensorflow/tensorflow/lite/micro/
Dmemory_arena_threshold_test.cc109 TF_LITE_MICRO_EXPECT_NEAR(actual, expected, in EnsureAllocatedSizeThreshold()

12