Home
last modified time | relevance | path

Searched refs:TF_LITE_MICRO_EXPECT_EQ (Results 1 – 25 of 89) sorted by relevance

1234

/external/tensorflow/tensorflow/lite/micro/memory_planner/
Dgreedy_memory_planner_test.cc44 TF_LITE_MICRO_EXPECT_EQ(a_expected_values[i], a_values[i]); in TF_LITE_MICRO_TEST()
45 TF_LITE_MICRO_EXPECT_EQ(a_expected_ids[i], a_ids[i]); in TF_LITE_MICRO_TEST()
55 TF_LITE_MICRO_EXPECT_EQ(b_expected_values[i], b_values[i]); in TF_LITE_MICRO_TEST()
56 TF_LITE_MICRO_EXPECT_EQ(b_expected_ids[i], b_ids[i]); in TF_LITE_MICRO_TEST()
88 TF_LITE_MICRO_EXPECT_EQ(c_expected_values[i], c_values[i]); in TF_LITE_MICRO_TEST()
89 TF_LITE_MICRO_EXPECT_EQ(c_expected_ids[i], c_ids[i]); in TF_LITE_MICRO_TEST()
97 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
99 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
102 TF_LITE_MICRO_EXPECT_EQ(false, in TF_LITE_MICRO_TEST()
105 TF_LITE_MICRO_EXPECT_EQ(static_cast<size_t>(20), in TF_LITE_MICRO_TEST()
[all …]
Dlinear_memory_planner_test.cc27 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
29 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
31 TF_LITE_MICRO_EXPECT_EQ(static_cast<size_t>(30), in TF_LITE_MICRO_TEST()
35 TF_LITE_MICRO_EXPECT_EQ( in TF_LITE_MICRO_TEST()
37 TF_LITE_MICRO_EXPECT_EQ(0, offset); in TF_LITE_MICRO_TEST()
39 TF_LITE_MICRO_EXPECT_EQ( in TF_LITE_MICRO_TEST()
41 TF_LITE_MICRO_EXPECT_EQ(10, offset); in TF_LITE_MICRO_TEST()
48 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
52 TF_LITE_MICRO_EXPECT_EQ(kTfLiteError, planner.GetOffsetForBuffer( in TF_LITE_MICRO_TEST()
60 TF_LITE_MICRO_EXPECT_EQ( in TF_LITE_MICRO_TEST()
[all …]
/external/tensorflow/tensorflow/lite/micro/
Dmicro_utils_test.cc25 TF_LITE_MICRO_EXPECT_EQ(0, FloatToQuantizedType<uint8_t>(0, 0.5, 0)); in TF_LITE_MICRO_TEST()
26 TF_LITE_MICRO_EXPECT_EQ(254, FloatToQuantizedType<uint8_t>(127, 0.5, 0)); in TF_LITE_MICRO_TEST()
27 TF_LITE_MICRO_EXPECT_EQ(255, FloatToQuantizedType<uint8_t>(127.5, 0.5, 0)); in TF_LITE_MICRO_TEST()
29 TF_LITE_MICRO_EXPECT_EQ(0, FloatToQuantizedType<uint8_t>(-10, 1.0, 10)); in TF_LITE_MICRO_TEST()
30 TF_LITE_MICRO_EXPECT_EQ(1, FloatToQuantizedType<uint8_t>(-9, 1.0, 10)); in TF_LITE_MICRO_TEST()
31 TF_LITE_MICRO_EXPECT_EQ(128, FloatToQuantizedType<uint8_t>(118, 1.0, 10)); in TF_LITE_MICRO_TEST()
32 TF_LITE_MICRO_EXPECT_EQ(253, FloatToQuantizedType<uint8_t>(243, 1.0, 10)); in TF_LITE_MICRO_TEST()
33 TF_LITE_MICRO_EXPECT_EQ(254, FloatToQuantizedType<uint8_t>(244, 1.0, 10)); in TF_LITE_MICRO_TEST()
34 TF_LITE_MICRO_EXPECT_EQ(255, FloatToQuantizedType<uint8_t>(245, 1.0, 10)); in TF_LITE_MICRO_TEST()
40 TF_LITE_MICRO_EXPECT_EQ(2, FloatToQuantizedType<int8_t>(1, 0.5, 0)); in TF_LITE_MICRO_TEST()
[all …]
Dmicro_interpreter_test.cc73 TF_LITE_MICRO_EXPECT_EQ(interpreter.AllocateTensors(), kTfLiteOk); in TF_LITE_MICRO_TEST()
75 TF_LITE_MICRO_EXPECT_EQ(static_cast<size_t>(1), interpreter.inputs_size()); in TF_LITE_MICRO_TEST()
76 TF_LITE_MICRO_EXPECT_EQ(static_cast<size_t>(2), interpreter.outputs_size()); in TF_LITE_MICRO_TEST()
77 TF_LITE_MICRO_EXPECT_EQ(static_cast<size_t>(4), interpreter.tensors_size()); in TF_LITE_MICRO_TEST()
81 TF_LITE_MICRO_EXPECT_EQ(kTfLiteInt32, input->type); in TF_LITE_MICRO_TEST()
82 TF_LITE_MICRO_EXPECT_EQ(1, input->dims->size); in TF_LITE_MICRO_TEST()
83 TF_LITE_MICRO_EXPECT_EQ(1, input->dims->data[0]); in TF_LITE_MICRO_TEST()
84 TF_LITE_MICRO_EXPECT_EQ(static_cast<size_t>(4), input->bytes); in TF_LITE_MICRO_TEST()
88 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, interpreter.Invoke()); in TF_LITE_MICRO_TEST()
92 TF_LITE_MICRO_EXPECT_EQ(kTfLiteInt32, output->type); in TF_LITE_MICRO_TEST()
[all …]
Dmemory_helpers_test.cc106 TF_LITE_MICRO_EXPECT_EQ(static_cast<size_t>(1), tflite::AlignSizeUp(1, 1)); in TF_LITE_MICRO_TEST()
107 TF_LITE_MICRO_EXPECT_EQ(static_cast<size_t>(2), tflite::AlignSizeUp(1, 2)); in TF_LITE_MICRO_TEST()
108 TF_LITE_MICRO_EXPECT_EQ(static_cast<size_t>(3), tflite::AlignSizeUp(1, 3)); in TF_LITE_MICRO_TEST()
109 TF_LITE_MICRO_EXPECT_EQ(static_cast<size_t>(16), tflite::AlignSizeUp(1, 16)); in TF_LITE_MICRO_TEST()
111 TF_LITE_MICRO_EXPECT_EQ(static_cast<size_t>(23), tflite::AlignSizeUp(23, 1)); in TF_LITE_MICRO_TEST()
112 TF_LITE_MICRO_EXPECT_EQ(static_cast<size_t>(24), tflite::AlignSizeUp(23, 2)); in TF_LITE_MICRO_TEST()
113 TF_LITE_MICRO_EXPECT_EQ(static_cast<size_t>(24), tflite::AlignSizeUp(23, 3)); in TF_LITE_MICRO_TEST()
114 TF_LITE_MICRO_EXPECT_EQ(static_cast<size_t>(32), tflite::AlignSizeUp(23, 16)); in TF_LITE_MICRO_TEST()
119 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
121 TF_LITE_MICRO_EXPECT_EQ(sizeof(int16_t), size); in TF_LITE_MICRO_TEST()
[all …]
Drecording_simple_memory_allocator_test.cc34 TF_LITE_MICRO_EXPECT_EQ(allocator.GetUsedBytes(), static_cast<size_t>(10)); in TF_LITE_MICRO_TEST()
35 TF_LITE_MICRO_EXPECT_EQ(allocator.GetRequestedBytes(), in TF_LITE_MICRO_TEST()
37 TF_LITE_MICRO_EXPECT_EQ(allocator.GetAllocatedCount(), in TF_LITE_MICRO_TEST()
42 TF_LITE_MICRO_EXPECT_EQ(allocator.GetUsedBytes(), static_cast<size_t>(30)); in TF_LITE_MICRO_TEST()
43 TF_LITE_MICRO_EXPECT_EQ(allocator.GetRequestedBytes(), in TF_LITE_MICRO_TEST()
45 TF_LITE_MICRO_EXPECT_EQ(allocator.GetAllocatedCount(), in TF_LITE_MICRO_TEST()
60 TF_LITE_MICRO_EXPECT_EQ(allocator.GetRequestedBytes(), in TF_LITE_MICRO_TEST()
62 TF_LITE_MICRO_EXPECT_EQ(allocator.GetAllocatedCount(), in TF_LITE_MICRO_TEST()
74 TF_LITE_MICRO_EXPECT_EQ(allocator.GetUsedBytes(), static_cast<size_t>(0)); in TF_LITE_MICRO_TEST()
75 TF_LITE_MICRO_EXPECT_EQ(allocator.GetRequestedBytes(), in TF_LITE_MICRO_TEST()
[all …]
Dmicro_allocator_test.cc40 TF_LITE_MICRO_EXPECT_EQ(kTfLiteInt32, tensor->type); in VerifyMockTfLiteTensor()
41 TF_LITE_MICRO_EXPECT_EQ(1, tensor->dims->size); in VerifyMockTfLiteTensor()
42 TF_LITE_MICRO_EXPECT_EQ(1, tensor->dims->data[0]); in VerifyMockTfLiteTensor()
43 TF_LITE_MICRO_EXPECT_EQ(is_variable, tensor->is_variable); in VerifyMockTfLiteTensor()
44 TF_LITE_MICRO_EXPECT_EQ(static_cast<size_t>(4), tensor->bytes); in VerifyMockTfLiteTensor()
46 TF_LITE_MICRO_EXPECT_EQ(static_cast<size_t>(0), in VerifyMockTfLiteTensor()
52 TF_LITE_MICRO_EXPECT_EQ(kTfLiteUInt8, tensor->type); in VerifyMockWeightTfLiteTensor()
53 TF_LITE_MICRO_EXPECT_EQ(1, tensor->dims->size); in VerifyMockWeightTfLiteTensor()
54 TF_LITE_MICRO_EXPECT_EQ(1, tensor->dims->data[0]); in VerifyMockWeightTfLiteTensor()
55 TF_LITE_MICRO_EXPECT_EQ(static_cast<size_t>(1), tensor->bytes); in VerifyMockWeightTfLiteTensor()
[all …]
Dsimple_memory_allocator_test.cc32 TF_LITE_MICRO_EXPECT_EQ( in TF_LITE_MICRO_TEST()
34 TF_LITE_MICRO_EXPECT_EQ(static_cast<size_t>(100), in TF_LITE_MICRO_TEST()
37 TF_LITE_MICRO_EXPECT_EQ( in TF_LITE_MICRO_TEST()
39 TF_LITE_MICRO_EXPECT_EQ(static_cast<size_t>(10), in TF_LITE_MICRO_TEST()
42 TF_LITE_MICRO_EXPECT_EQ( in TF_LITE_MICRO_TEST()
44 TF_LITE_MICRO_EXPECT_EQ(static_cast<size_t>(1000), in TF_LITE_MICRO_TEST()
55 TF_LITE_MICRO_EXPECT_EQ( in TF_LITE_MICRO_TEST()
63 TF_LITE_MICRO_EXPECT_EQ( in TF_LITE_MICRO_TEST()
68 TF_LITE_MICRO_EXPECT_EQ( in TF_LITE_MICRO_TEST()
81 TF_LITE_MICRO_EXPECT_EQ( in TF_LITE_MICRO_TEST()
[all …]
Dmicro_string_test.cc27 TF_LITE_MICRO_EXPECT_EQ(static_cast<int>(sizeof(golden)), bytes_written); in TF_LITE_MICRO_TEST()
36 TF_LITE_MICRO_EXPECT_EQ(static_cast<int>(sizeof(golden)), bytes_written); in TF_LITE_MICRO_TEST()
45 TF_LITE_MICRO_EXPECT_EQ(static_cast<int>(sizeof(golden)), bytes_written); in TF_LITE_MICRO_TEST()
54 TF_LITE_MICRO_EXPECT_EQ(static_cast<int>(sizeof(golden)), bytes_written); in TF_LITE_MICRO_TEST()
63 TF_LITE_MICRO_EXPECT_EQ(static_cast<int>(sizeof(golden)), bytes_written); in TF_LITE_MICRO_TEST()
73 TF_LITE_MICRO_EXPECT_EQ(static_cast<int>(sizeof(golden)), bytes_written); in TF_LITE_MICRO_TEST()
82 TF_LITE_MICRO_EXPECT_EQ(static_cast<int>(sizeof(golden)), bytes_written); in TF_LITE_MICRO_TEST()
91 TF_LITE_MICRO_EXPECT_EQ(static_cast<int>(sizeof(golden)), bytes_written); in TF_LITE_MICRO_TEST()
100 TF_LITE_MICRO_EXPECT_EQ(static_cast<int>(sizeof(golden)), bytes_written); in TF_LITE_MICRO_TEST()
109 TF_LITE_MICRO_EXPECT_EQ(static_cast<int>(sizeof(golden)), bytes_written); in TF_LITE_MICRO_TEST()
[all …]
Drecording_micro_allocator_test.cc57 TF_LITE_MICRO_EXPECT_EQ(status, kTfLiteOk); in TF_LITE_MICRO_TEST()
62 TF_LITE_MICRO_EXPECT_EQ(status, kTfLiteOk); in TF_LITE_MICRO_TEST()
75 TF_LITE_MICRO_EXPECT_EQ(recorded_allocation.count, tensors_count); in TF_LITE_MICRO_TEST()
76 TF_LITE_MICRO_EXPECT_EQ(recorded_allocation.requested_bytes, in TF_LITE_MICRO_TEST()
99 TF_LITE_MICRO_EXPECT_EQ(status, kTfLiteOk); in TF_LITE_MICRO_TEST()
104 TF_LITE_MICRO_EXPECT_EQ(status, kTfLiteOk); in TF_LITE_MICRO_TEST()
111 TF_LITE_MICRO_EXPECT_EQ(recorded_allocation.count, num_ops); in TF_LITE_MICRO_TEST()
112 TF_LITE_MICRO_EXPECT_EQ(recorded_allocation.requested_bytes, in TF_LITE_MICRO_TEST()
139 TF_LITE_MICRO_EXPECT_EQ(status, kTfLiteOk); in TF_LITE_MICRO_TEST()
144 TF_LITE_MICRO_EXPECT_EQ(status, kTfLiteOk); in TF_LITE_MICRO_TEST()
[all …]
Dmicro_mutable_op_resolver_test.cc75 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
79 TF_LITE_MICRO_EXPECT_EQ(kTfLiteError, in TF_LITE_MICRO_TEST()
84 TF_LITE_MICRO_EXPECT_EQ(static_cast<size_t>(1), in TF_LITE_MICRO_TEST()
94 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, registration->prepare(nullptr, nullptr)); in TF_LITE_MICRO_TEST()
95 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, registration->invoke(nullptr, nullptr)); in TF_LITE_MICRO_TEST()
114 TF_LITE_MICRO_EXPECT_EQ(false, mock_reporter.HasBeenCalled()); in TF_LITE_MICRO_TEST()
117 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
119 TF_LITE_MICRO_EXPECT_EQ(false, mock_reporter.HasBeenCalled()); in TF_LITE_MICRO_TEST()
124 TF_LITE_MICRO_EXPECT_EQ(kTfLiteError, micro_op_resolver.AddRelu()); in TF_LITE_MICRO_TEST()
126 TF_LITE_MICRO_EXPECT_EQ(kTfLiteError, in TF_LITE_MICRO_TEST()
[all …]
Dtesting_helpers_test.cc35 TF_LITE_MICRO_EXPECT_EQ(result.bytes, tensor_size * sizeof(int32_t)); in TF_LITE_MICRO_TEST()
37 TF_LITE_MICRO_EXPECT_EQ(result.params.scale, input_scale * weight_scale); in TF_LITE_MICRO_TEST()
39 TF_LITE_MICRO_EXPECT_EQ(expected_quantized_values[i], result.data.i32[i]); in TF_LITE_MICRO_TEST()
65 TF_LITE_MICRO_EXPECT_EQ(scales[i + 1], input_scale * weight_scales[i]); in TF_LITE_MICRO_TEST()
68 TF_LITE_MICRO_EXPECT_EQ(result.bytes, tensor_size * sizeof(int32_t)); in TF_LITE_MICRO_TEST()
71 TF_LITE_MICRO_EXPECT_EQ(expected_quantized_values[i], result.data.i32[i]); in TF_LITE_MICRO_TEST()
94 TF_LITE_MICRO_EXPECT_EQ(result.bytes, tensor_size * sizeof(int8_t)); in TF_LITE_MICRO_TEST()
99 TF_LITE_MICRO_EXPECT_EQ(result_scales->data[i], expected_scales[i]); in TF_LITE_MICRO_TEST()
102 TF_LITE_MICRO_EXPECT_EQ(expected_quantized_values[i], result.data.int8[i]); in TF_LITE_MICRO_TEST()
/external/tensorflow/tensorflow/lite/micro/kernels/
Dquantization_util_test.cc32 TF_LITE_MICRO_EXPECT_EQ(static_cast<IntOut>(0), imin); in RunSafeCastTests()
36 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(0.0)), in RunSafeCastTests()
38 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(-0.0)), in RunSafeCastTests()
40 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(0.99)), in RunSafeCastTests()
42 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(1.0)), in RunSafeCastTests()
44 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(1.01)), in RunSafeCastTests()
46 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(1.99)), in RunSafeCastTests()
48 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(2.0)), in RunSafeCastTests()
50 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(2.01)), in RunSafeCastTests()
52 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(-0.99)), in RunSafeCastTests()
[all …]
Dzeros_like_test.cc50 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, runner.InitAndPrepare()); in TestZerosLikeFloat()
51 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, runner.Invoke()); in TestZerosLikeFloat()
54 TF_LITE_MICRO_EXPECT_EQ(expected_output_data[i], output_data[i]); in TestZerosLikeFloat()
82 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, runner.InitAndPrepare()); in TestZerosLikeInt32()
83 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, runner.Invoke()); in TestZerosLikeInt32()
86 TF_LITE_MICRO_EXPECT_EQ(expected_output_data[i], output_data[i]); in TestZerosLikeInt32()
114 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, runner.InitAndPrepare()); in TestZerosLikeInt64()
115 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, runner.Invoke()); in TestZerosLikeInt64()
118 TF_LITE_MICRO_EXPECT_EQ(expected_output_data[i], output_data[i]); in TestZerosLikeInt64()
/external/tensorflow/tensorflow/lite/micro/examples/micro_speech/
Drecognize_commands_test.cc27 TF_LITE_MICRO_EXPECT_EQ(0, queue.size()); in TF_LITE_MICRO_TEST()
31 TF_LITE_MICRO_EXPECT_EQ(1, queue.size()); in TF_LITE_MICRO_TEST()
32 TF_LITE_MICRO_EXPECT_EQ(0, queue.front().time_); in TF_LITE_MICRO_TEST()
33 TF_LITE_MICRO_EXPECT_EQ(0, queue.back().time_); in TF_LITE_MICRO_TEST()
37 TF_LITE_MICRO_EXPECT_EQ(2, queue.size()); in TF_LITE_MICRO_TEST()
38 TF_LITE_MICRO_EXPECT_EQ(0, queue.front().time_); in TF_LITE_MICRO_TEST()
39 TF_LITE_MICRO_EXPECT_EQ(1, queue.back().time_); in TF_LITE_MICRO_TEST()
42 TF_LITE_MICRO_EXPECT_EQ(0, pop_result.time_); in TF_LITE_MICRO_TEST()
43 TF_LITE_MICRO_EXPECT_EQ(1, queue.size()); in TF_LITE_MICRO_TEST()
44 TF_LITE_MICRO_EXPECT_EQ(1, queue.front().time_); in TF_LITE_MICRO_TEST()
[all …]
Dmicro_speech_test.cc69 TF_LITE_MICRO_EXPECT_EQ(2, input->dims->size); in TF_LITE_MICRO_TEST()
70 TF_LITE_MICRO_EXPECT_EQ(1, input->dims->data[0]); in TF_LITE_MICRO_TEST()
71 TF_LITE_MICRO_EXPECT_EQ(1960, input->dims->data[1]); in TF_LITE_MICRO_TEST()
72 TF_LITE_MICRO_EXPECT_EQ(kTfLiteInt8, input->type); in TF_LITE_MICRO_TEST()
86 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, invoke_status); in TF_LITE_MICRO_TEST()
91 TF_LITE_MICRO_EXPECT_EQ(2, output->dims->size); in TF_LITE_MICRO_TEST()
92 TF_LITE_MICRO_EXPECT_EQ(1, output->dims->data[0]); in TF_LITE_MICRO_TEST()
93 TF_LITE_MICRO_EXPECT_EQ(4, output->dims->data[1]); in TF_LITE_MICRO_TEST()
94 TF_LITE_MICRO_EXPECT_EQ(kTfLiteInt8, output->type); in TF_LITE_MICRO_TEST()
122 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, invoke_status); in TF_LITE_MICRO_TEST()
[all …]
Daudio_provider_mock_test.cc36 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, get_status); in TF_LITE_MICRO_TEST()
40 TF_LITE_MICRO_EXPECT_EQ(g_yes_1000ms_sample_data[i], audio_samples[i]); in TF_LITE_MICRO_TEST()
46 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, get_status); in TF_LITE_MICRO_TEST()
50 TF_LITE_MICRO_EXPECT_EQ(g_yes_1000ms_sample_data[i + 8000], in TF_LITE_MICRO_TEST()
57 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, get_status); in TF_LITE_MICRO_TEST()
61 TF_LITE_MICRO_EXPECT_EQ(0, audio_samples[i]); in TF_LITE_MICRO_TEST()
67 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, get_status); in TF_LITE_MICRO_TEST()
71 TF_LITE_MICRO_EXPECT_EQ(g_no_1000ms_sample_data[i + 4000], in TF_LITE_MICRO_TEST()
Dfeature_provider_mock_test.cc36 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, populate_status); in TF_LITE_MICRO_TEST()
37 TF_LITE_MICRO_EXPECT_EQ(kFeatureSliceCount, how_many_new_slices); in TF_LITE_MICRO_TEST()
40 TF_LITE_MICRO_EXPECT_EQ(g_yes_micro_f2e59fea_nohash_1_data[i], in TF_LITE_MICRO_TEST()
55 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, populate_status); in TF_LITE_MICRO_TEST()
56 TF_LITE_MICRO_EXPECT_EQ(kFeatureSliceCount, how_many_new_slices); in TF_LITE_MICRO_TEST()
59 TF_LITE_MICRO_EXPECT_EQ(g_no_micro_f9643d42_nohash_4_data[i], in TF_LITE_MICRO_TEST()
/external/tensorflow/tensorflow/lite/micro/examples/person_detection/
Dperson_detection_test.cc70 TF_LITE_MICRO_EXPECT_EQ(4, input->dims->size); in TF_LITE_MICRO_TEST()
71 TF_LITE_MICRO_EXPECT_EQ(1, input->dims->data[0]); in TF_LITE_MICRO_TEST()
72 TF_LITE_MICRO_EXPECT_EQ(kNumRows, input->dims->data[1]); in TF_LITE_MICRO_TEST()
73 TF_LITE_MICRO_EXPECT_EQ(kNumCols, input->dims->data[2]); in TF_LITE_MICRO_TEST()
74 TF_LITE_MICRO_EXPECT_EQ(kNumChannels, input->dims->data[3]); in TF_LITE_MICRO_TEST()
75 TF_LITE_MICRO_EXPECT_EQ(kTfLiteInt8, input->type); in TF_LITE_MICRO_TEST()
86 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, invoke_status); in TF_LITE_MICRO_TEST()
91 TF_LITE_MICRO_EXPECT_EQ(2, output->dims->size); in TF_LITE_MICRO_TEST()
92 TF_LITE_MICRO_EXPECT_EQ(1, output->dims->data[0]); in TF_LITE_MICRO_TEST()
93 TF_LITE_MICRO_EXPECT_EQ(kCategoryCount, output->dims->data[1]); in TF_LITE_MICRO_TEST()
[all …]
/external/tensorflow/tensorflow/lite/micro/examples/magic_wand/
Dmagic_wand_test.cc71 TF_LITE_MICRO_EXPECT_EQ(4, input->dims->size); in TF_LITE_MICRO_TEST()
73 TF_LITE_MICRO_EXPECT_EQ(1, input->dims->data[0]); in TF_LITE_MICRO_TEST()
74 TF_LITE_MICRO_EXPECT_EQ(128, input->dims->data[1]); in TF_LITE_MICRO_TEST()
75 TF_LITE_MICRO_EXPECT_EQ(3, input->dims->data[2]); in TF_LITE_MICRO_TEST()
76 TF_LITE_MICRO_EXPECT_EQ(1, input->dims->data[3]); in TF_LITE_MICRO_TEST()
78 TF_LITE_MICRO_EXPECT_EQ(kTfLiteFloat32, input->type); in TF_LITE_MICRO_TEST()
92 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, invoke_status); in TF_LITE_MICRO_TEST()
97 TF_LITE_MICRO_EXPECT_EQ(2, output->dims->size); in TF_LITE_MICRO_TEST()
98 TF_LITE_MICRO_EXPECT_EQ(1, output->dims->data[0]); in TF_LITE_MICRO_TEST()
99 TF_LITE_MICRO_EXPECT_EQ(4, output->dims->data[1]); in TF_LITE_MICRO_TEST()
[all …]
/external/tensorflow/tensorflow/lite/experimental/microfrontend/lib/
Dfilterbank_test.cc56 TF_LITE_MICRO_EXPECT_EQ(state.start_index, kStartIndex); in TF_LITE_MICRO_TEST()
67 TF_LITE_MICRO_EXPECT_EQ(state.end_index, kEndIndex); in TF_LITE_MICRO_TEST()
79 TF_LITE_MICRO_EXPECT_EQ(state.num_channels + 1, in TF_LITE_MICRO_TEST()
83 TF_LITE_MICRO_EXPECT_EQ(state.channel_frequency_starts[i], expected[i]); in TF_LITE_MICRO_TEST()
96 TF_LITE_MICRO_EXPECT_EQ(state.num_channels + 1, in TF_LITE_MICRO_TEST()
100 TF_LITE_MICRO_EXPECT_EQ(state.channel_weight_starts[i], expected[i]); in TF_LITE_MICRO_TEST()
113 TF_LITE_MICRO_EXPECT_EQ(state.num_channels + 1, in TF_LITE_MICRO_TEST()
117 TF_LITE_MICRO_EXPECT_EQ(state.channel_widths[i], expected[i]); in TF_LITE_MICRO_TEST()
132 TF_LITE_MICRO_EXPECT_EQ(state.channel_weight_starts[state.num_channels] + in TF_LITE_MICRO_TEST()
137 TF_LITE_MICRO_EXPECT_EQ(state.weights[i], expected[i]); in TF_LITE_MICRO_TEST()
[all …]
Dwindow_test.cc55 TF_LITE_MICRO_EXPECT_EQ(state.size, sizeof(expected) / sizeof(expected[0])); in TF_LITE_MICRO_TEST()
58 TF_LITE_MICRO_EXPECT_EQ(state.coefficients[i], expected[i]); in TF_LITE_MICRO_TEST()
77 TF_LITE_MICRO_EXPECT_EQ(state.input[i - kStepSamples], kFakeAudioData[i]); in TF_LITE_MICRO_TEST()
97 TF_LITE_MICRO_EXPECT_EQ(state.size, sizeof(expected) / sizeof(expected[0])); in TF_LITE_MICRO_TEST()
100 TF_LITE_MICRO_EXPECT_EQ(state.output[i], expected[i]); in TF_LITE_MICRO_TEST()
117 TF_LITE_MICRO_EXPECT_EQ(state.max_abs_output_value, 32256); in TF_LITE_MICRO_TEST()
140 TF_LITE_MICRO_EXPECT_EQ(state.size, sizeof(expected) / sizeof(expected[0])); in TF_LITE_MICRO_TEST()
143 TF_LITE_MICRO_EXPECT_EQ(state.output[i], expected[i]); in TF_LITE_MICRO_TEST()
163 TF_LITE_MICRO_EXPECT_EQ( in TF_LITE_MICRO_TEST()
170 TF_LITE_MICRO_EXPECT_EQ( in TF_LITE_MICRO_TEST()
/external/tensorflow/tensorflow/lite/micro/examples/micro_speech/apollo3/
Dpushbutton_test.cc58 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, generate_1sec_status); in TF_LITE_MICRO_TEST()
88 TF_LITE_MICRO_EXPECT_EQ(4, input->dims->size); in TF_LITE_MICRO_TEST()
89 TF_LITE_MICRO_EXPECT_EQ(1, input->dims->data[0]); in TF_LITE_MICRO_TEST()
90 TF_LITE_MICRO_EXPECT_EQ(49, input->dims->data[1]); in TF_LITE_MICRO_TEST()
91 TF_LITE_MICRO_EXPECT_EQ(43, input->dims->data[2]); in TF_LITE_MICRO_TEST()
92 TF_LITE_MICRO_EXPECT_EQ(kTfLiteUInt8, input->type); in TF_LITE_MICRO_TEST()
105 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, invoke_status); in TF_LITE_MICRO_TEST()
110 TF_LITE_MICRO_EXPECT_EQ(2, output->dims->size); in TF_LITE_MICRO_TEST()
111 TF_LITE_MICRO_EXPECT_EQ(1, output->dims->data[0]); in TF_LITE_MICRO_TEST()
112 TF_LITE_MICRO_EXPECT_EQ(4, output->dims->data[1]); in TF_LITE_MICRO_TEST()
[all …]
/external/tensorflow/tensorflow/lite/micro/examples/hello_world/
Dhello_world_test.cc55 TF_LITE_MICRO_EXPECT_EQ(interpreter.AllocateTensors(), kTfLiteOk); in TF_LITE_MICRO_TEST()
65 TF_LITE_MICRO_EXPECT_EQ(2, input->dims->size); in TF_LITE_MICRO_TEST()
69 TF_LITE_MICRO_EXPECT_EQ(1, input->dims->data[0]); in TF_LITE_MICRO_TEST()
70 TF_LITE_MICRO_EXPECT_EQ(1, input->dims->data[1]); in TF_LITE_MICRO_TEST()
72 TF_LITE_MICRO_EXPECT_EQ(kTfLiteInt8, input->type); in TF_LITE_MICRO_TEST()
85 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, invoke_status); in TF_LITE_MICRO_TEST()
90 TF_LITE_MICRO_EXPECT_EQ(2, output->dims->size); in TF_LITE_MICRO_TEST()
91 TF_LITE_MICRO_EXPECT_EQ(1, output->dims->data[0]); in TF_LITE_MICRO_TEST()
92 TF_LITE_MICRO_EXPECT_EQ(1, output->dims->data[1]); in TF_LITE_MICRO_TEST()
93 TF_LITE_MICRO_EXPECT_EQ(kTfLiteInt8, output->type); in TF_LITE_MICRO_TEST()
/external/tensorflow/tensorflow/lite/micro/examples/image_recognition_experimental/
Dimage_recognition_test.cc59 TF_LITE_MICRO_EXPECT_EQ(4, input->dims->size); in TF_LITE_MICRO_TEST()
60 TF_LITE_MICRO_EXPECT_EQ(1, input->dims->data[0]); in TF_LITE_MICRO_TEST()
61 TF_LITE_MICRO_EXPECT_EQ(32, input->dims->data[1]); in TF_LITE_MICRO_TEST()
62 TF_LITE_MICRO_EXPECT_EQ(32, input->dims->data[2]); in TF_LITE_MICRO_TEST()
63 TF_LITE_MICRO_EXPECT_EQ(3, input->dims->data[3]); in TF_LITE_MICRO_TEST()
64 TF_LITE_MICRO_EXPECT_EQ(kTfLiteUInt8, input->type); in TF_LITE_MICRO_TEST()
83 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, invoke_status); in TF_LITE_MICRO_TEST()
96 TF_LITE_MICRO_EXPECT_EQ(6, num_correct); in TF_LITE_MICRO_TEST()

1234