/external/tensorflow/tensorflow/lite/micro/ |
D | micro_utils_test.cc | 25 TF_LITE_MICRO_EXPECT_EQ(0, FloatToAsymmetricQuantizedUInt8(0, 0.5, 0)); in TF_LITE_MICRO_TEST() 26 TF_LITE_MICRO_EXPECT_EQ(254, FloatToAsymmetricQuantizedUInt8(127, 0.5, 0)); in TF_LITE_MICRO_TEST() 27 TF_LITE_MICRO_EXPECT_EQ(255, FloatToAsymmetricQuantizedUInt8(127.5, 0.5, 0)); in TF_LITE_MICRO_TEST() 29 TF_LITE_MICRO_EXPECT_EQ(0, FloatToAsymmetricQuantizedUInt8(-10, 1.0, 10)); in TF_LITE_MICRO_TEST() 30 TF_LITE_MICRO_EXPECT_EQ(1, FloatToAsymmetricQuantizedUInt8(-9, 1.0, 10)); in TF_LITE_MICRO_TEST() 31 TF_LITE_MICRO_EXPECT_EQ(128, FloatToAsymmetricQuantizedUInt8(118, 1.0, 10)); in TF_LITE_MICRO_TEST() 32 TF_LITE_MICRO_EXPECT_EQ(253, FloatToAsymmetricQuantizedUInt8(243, 1.0, 10)); in TF_LITE_MICRO_TEST() 33 TF_LITE_MICRO_EXPECT_EQ(254, FloatToAsymmetricQuantizedUInt8(244, 1.0, 10)); in TF_LITE_MICRO_TEST() 34 TF_LITE_MICRO_EXPECT_EQ(255, FloatToAsymmetricQuantizedUInt8(245, 1.0, 10)); in TF_LITE_MICRO_TEST() 40 TF_LITE_MICRO_EXPECT_EQ(2, FloatToAsymmetricQuantizedInt8(1, 0.5, 0)); in TF_LITE_MICRO_TEST() [all …]
|
D | memory_helpers_test.cc | 27 TF_LITE_MICRO_EXPECT_EQ(input0, input0_aligned1); in TF_LITE_MICRO_TEST() 30 TF_LITE_MICRO_EXPECT_EQ(input0, input0_aligned2); in TF_LITE_MICRO_TEST() 33 TF_LITE_MICRO_EXPECT_EQ(input0, input0_aligned3); in TF_LITE_MICRO_TEST() 36 TF_LITE_MICRO_EXPECT_EQ(input0, input0_aligned16); in TF_LITE_MICRO_TEST() 41 TF_LITE_MICRO_EXPECT_EQ(input23, input23_aligned1); in TF_LITE_MICRO_TEST() 45 TF_LITE_MICRO_EXPECT_EQ(expected23_aligned2, input23_aligned2); in TF_LITE_MICRO_TEST() 49 TF_LITE_MICRO_EXPECT_EQ(expected23_aligned3, input23_aligned3); in TF_LITE_MICRO_TEST() 53 TF_LITE_MICRO_EXPECT_EQ(expected23_aligned16, input23_aligned16); in TF_LITE_MICRO_TEST() 60 TF_LITE_MICRO_EXPECT_EQ(input0, input0_aligned1); in TF_LITE_MICRO_TEST() 63 TF_LITE_MICRO_EXPECT_EQ(input0, input0_aligned2); in TF_LITE_MICRO_TEST() [all …]
|
D | micro_allocator_test.cc | 31 TF_LITE_MICRO_EXPECT_EQ(kTfLiteInt32, tensor->type); in VerifyMockTensor() 32 TF_LITE_MICRO_EXPECT_EQ(1, tensor->dims->size); in VerifyMockTensor() 33 TF_LITE_MICRO_EXPECT_EQ(1, tensor->dims->data[0]); in VerifyMockTensor() 34 TF_LITE_MICRO_EXPECT_EQ(is_variable, tensor->is_variable); in VerifyMockTensor() 35 TF_LITE_MICRO_EXPECT_EQ(4, tensor->bytes); in VerifyMockTensor() 37 TF_LITE_MICRO_EXPECT_EQ(0, in VerifyMockTensor() 43 TF_LITE_MICRO_EXPECT_EQ(kTfLiteUInt8, tensor->type); in VerifyMockWeightTensor() 44 TF_LITE_MICRO_EXPECT_EQ(1, tensor->dims->size); in VerifyMockWeightTensor() 45 TF_LITE_MICRO_EXPECT_EQ(1, tensor->dims->data[0]); in VerifyMockWeightTensor() 46 TF_LITE_MICRO_EXPECT_EQ(1, tensor->bytes); in VerifyMockWeightTensor() [all …]
|
D | micro_interpreter_test.cc | 28 TF_LITE_MICRO_EXPECT_EQ(nullptr, in MockInit() 86 TF_LITE_MICRO_EXPECT_EQ(interpreter.AllocateTensors(), kTfLiteOk); in TF_LITE_MICRO_TEST() 87 TF_LITE_MICRO_EXPECT_EQ(1, interpreter.inputs_size()); in TF_LITE_MICRO_TEST() 88 TF_LITE_MICRO_EXPECT_EQ(2, interpreter.outputs_size()); in TF_LITE_MICRO_TEST() 92 TF_LITE_MICRO_EXPECT_EQ(kTfLiteInt32, input->type); in TF_LITE_MICRO_TEST() 93 TF_LITE_MICRO_EXPECT_EQ(1, input->dims->size); in TF_LITE_MICRO_TEST() 94 TF_LITE_MICRO_EXPECT_EQ(1, input->dims->data[0]); in TF_LITE_MICRO_TEST() 95 TF_LITE_MICRO_EXPECT_EQ(4, input->bytes); in TF_LITE_MICRO_TEST() 99 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, interpreter.Invoke()); in TF_LITE_MICRO_TEST() 103 TF_LITE_MICRO_EXPECT_EQ(kTfLiteInt32, output->type); in TF_LITE_MICRO_TEST() [all …]
|
D | testing_helpers_test.cc | 36 TF_LITE_MICRO_EXPECT_EQ(result.bytes, tensor_size * sizeof(int32_t)); in TF_LITE_MICRO_TEST() 37 TF_LITE_MICRO_EXPECT_EQ(result.dims, dims); in TF_LITE_MICRO_TEST() 38 TF_LITE_MICRO_EXPECT_EQ(result.name, tensor_name); in TF_LITE_MICRO_TEST() 39 TF_LITE_MICRO_EXPECT_EQ(result.params.scale, input_scale * weight_scale); in TF_LITE_MICRO_TEST() 41 TF_LITE_MICRO_EXPECT_EQ(expected_quantized_values[i], result.data.i32[i]); in TF_LITE_MICRO_TEST() 68 TF_LITE_MICRO_EXPECT_EQ(scales[i + 1], input_scale * weight_scales[i]); in TF_LITE_MICRO_TEST() 71 TF_LITE_MICRO_EXPECT_EQ(result.bytes, tensor_size * sizeof(int32_t)); in TF_LITE_MICRO_TEST() 72 TF_LITE_MICRO_EXPECT_EQ(result.dims, dims); in TF_LITE_MICRO_TEST() 73 TF_LITE_MICRO_EXPECT_EQ(result.name, tensor_name); in TF_LITE_MICRO_TEST() 75 TF_LITE_MICRO_EXPECT_EQ(expected_quantized_values[i], result.data.i32[i]); in TF_LITE_MICRO_TEST() [all …]
|
D | micro_mutable_op_resolver_test.cc | 62 TF_LITE_MICRO_EXPECT_EQ(nullptr, registration->init(nullptr, nullptr, 0)); in TF_LITE_MICRO_TEST() 63 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, registration->prepare(nullptr, nullptr)); in TF_LITE_MICRO_TEST() 64 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, registration->invoke(nullptr, nullptr)); in TF_LITE_MICRO_TEST() 66 TF_LITE_MICRO_EXPECT_EQ(7, micro_op_resolver.GetRegistrationLength()); in TF_LITE_MICRO_TEST() 69 TF_LITE_MICRO_EXPECT_EQ(nullptr, registration); in TF_LITE_MICRO_TEST() 72 TF_LITE_MICRO_EXPECT_EQ(nullptr, registration); in TF_LITE_MICRO_TEST() 76 TF_LITE_MICRO_EXPECT_EQ(nullptr, registration->init(nullptr, nullptr, 0)); in TF_LITE_MICRO_TEST() 77 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, registration->prepare(nullptr, nullptr)); in TF_LITE_MICRO_TEST() 78 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, registration->invoke(nullptr, nullptr)); in TF_LITE_MICRO_TEST() 81 TF_LITE_MICRO_EXPECT_EQ(nullptr, registration); in TF_LITE_MICRO_TEST() [all …]
|
D | simple_memory_allocator_test.cc | 44 TF_LITE_MICRO_EXPECT_EQ(0, reinterpret_cast<std::uintptr_t>(result) & 3); in TF_LITE_MICRO_TEST() 56 TF_LITE_MICRO_EXPECT_EQ(nullptr, result); in TF_LITE_MICRO_TEST() 70 TF_LITE_MICRO_EXPECT_EQ(second, first - 16); in TF_LITE_MICRO_TEST() 74 TF_LITE_MICRO_EXPECT_EQ(third, second - 16); in TF_LITE_MICRO_TEST() 77 TF_LITE_MICRO_EXPECT_EQ(nullptr, allocator.AllocateFromTail(16, 4)); in TF_LITE_MICRO_TEST() 78 TF_LITE_MICRO_EXPECT_EQ(nullptr, child_allocator.AllocateFromTail(16, 4)); in TF_LITE_MICRO_TEST() 84 TF_LITE_MICRO_EXPECT_EQ(fourth, first - 16); in TF_LITE_MICRO_TEST()
|
/external/tensorflow/tensorflow/lite/micro/memory_planner/ |
D | greedy_memory_planner_test.cc | 44 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() 98 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST() 100 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST() 103 TF_LITE_MICRO_EXPECT_EQ(false, planner.DoAnyBuffersOverlap(error_reporter)); in TF_LITE_MICRO_TEST() 105 TF_LITE_MICRO_EXPECT_EQ(20, planner.GetMaximumMemorySize()); in TF_LITE_MICRO_TEST() [all …]
|
D | linear_memory_planner_test.cc | 27 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(30, planner.GetMaximumMemorySize()); in TF_LITE_MICRO_TEST() 34 TF_LITE_MICRO_EXPECT_EQ( in TF_LITE_MICRO_TEST() 36 TF_LITE_MICRO_EXPECT_EQ(0, offset); in TF_LITE_MICRO_TEST() 38 TF_LITE_MICRO_EXPECT_EQ( in TF_LITE_MICRO_TEST() 40 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( in TF_LITE_MICRO_TEST() 61 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST() [all …]
|
/external/tensorflow/tensorflow/lite/micro/kernels/ |
D | quantization_util_test.cc | 32 TF_LITE_MICRO_EXPECT_EQ(0, imin); in RunSafeCastTests() 36 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(0.0)), 0); in RunSafeCastTests() 37 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(-0.0)), 0); in RunSafeCastTests() 38 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(0.99)), 0); in RunSafeCastTests() 39 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(1.0)), 1); in RunSafeCastTests() 40 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(1.01)), 1); in RunSafeCastTests() 41 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(1.99)), 1); in RunSafeCastTests() 42 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(2.0)), 2); in RunSafeCastTests() 43 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(2.01)), 2); in RunSafeCastTests() 44 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(-0.99)), 0); in RunSafeCastTests() [all …]
|
D | unpack_test.cc | 97 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, registration->prepare(&context, &node)); in TestUnpackThreeOutputsFloat() 101 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, registration->invoke(&context, &node)); in TestUnpackThreeOutputsFloat() 174 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, registration->prepare(&context, &node)); in TestUnpackOneOutputFloat() 178 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, registration->invoke(&context, &node)); in TestUnpackOneOutputFloat() 266 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, registration->prepare(&context, &node)); in TestUnpackThreeOutputsQuantized() 270 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, registration->invoke(&context, &node)); in TestUnpackThreeOutputsQuantized() 276 TF_LITE_MICRO_EXPECT_EQ(expected_output1_data.begin()[i], output1_data[i]); in TestUnpackThreeOutputsQuantized() 280 TF_LITE_MICRO_EXPECT_EQ(expected_output2_data.begin()[i], output2_data[i]); in TestUnpackThreeOutputsQuantized() 284 TF_LITE_MICRO_EXPECT_EQ(expected_output3_data.begin()[i], output3_data[i]); in TestUnpackThreeOutputsQuantized() 362 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, registration->prepare(&context, &node)); in TestUnpackThreeOutputsQuantized32() [all …]
|
/external/tensorflow/tensorflow/lite/micro/examples/micro_speech/ |
D | recognize_commands_test.cc | 28 TF_LITE_MICRO_EXPECT_EQ(0, queue.size()); in TF_LITE_MICRO_TEST() 32 TF_LITE_MICRO_EXPECT_EQ(1, queue.size()); in TF_LITE_MICRO_TEST() 33 TF_LITE_MICRO_EXPECT_EQ(0, queue.front().time_); in TF_LITE_MICRO_TEST() 34 TF_LITE_MICRO_EXPECT_EQ(0, queue.back().time_); in TF_LITE_MICRO_TEST() 38 TF_LITE_MICRO_EXPECT_EQ(2, queue.size()); in TF_LITE_MICRO_TEST() 39 TF_LITE_MICRO_EXPECT_EQ(0, queue.front().time_); in TF_LITE_MICRO_TEST() 40 TF_LITE_MICRO_EXPECT_EQ(1, queue.back().time_); in TF_LITE_MICRO_TEST() 43 TF_LITE_MICRO_EXPECT_EQ(0, pop_result.time_); in TF_LITE_MICRO_TEST() 44 TF_LITE_MICRO_EXPECT_EQ(1, queue.size()); in TF_LITE_MICRO_TEST() 45 TF_LITE_MICRO_EXPECT_EQ(1, queue.front().time_); in TF_LITE_MICRO_TEST() [all …]
|
D | micro_speech_test.cc | 75 TF_LITE_MICRO_EXPECT_EQ(4, input->dims->size); in TF_LITE_MICRO_TEST() 76 TF_LITE_MICRO_EXPECT_EQ(1, input->dims->data[0]); in TF_LITE_MICRO_TEST() 77 TF_LITE_MICRO_EXPECT_EQ(49, input->dims->data[1]); in TF_LITE_MICRO_TEST() 78 TF_LITE_MICRO_EXPECT_EQ(40, input->dims->data[2]); in TF_LITE_MICRO_TEST() 79 TF_LITE_MICRO_EXPECT_EQ(1, input->dims->data[3]); in TF_LITE_MICRO_TEST() 80 TF_LITE_MICRO_EXPECT_EQ(kTfLiteUInt8, input->type); in TF_LITE_MICRO_TEST() 94 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, invoke_status); in TF_LITE_MICRO_TEST() 99 TF_LITE_MICRO_EXPECT_EQ(2, output->dims->size); in TF_LITE_MICRO_TEST() 100 TF_LITE_MICRO_EXPECT_EQ(1, output->dims->data[0]); in TF_LITE_MICRO_TEST() 101 TF_LITE_MICRO_EXPECT_EQ(4, output->dims->data[1]); in TF_LITE_MICRO_TEST() [all …]
|
D | audio_provider_mock_test.cc | 37 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, get_status); in TF_LITE_MICRO_TEST() 41 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() 56 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, get_status); in TF_LITE_MICRO_TEST() 60 TF_LITE_MICRO_EXPECT_EQ(0, audio_samples[i]); in TF_LITE_MICRO_TEST() 65 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, get_status); in TF_LITE_MICRO_TEST() 69 TF_LITE_MICRO_EXPECT_EQ(g_no_1000ms_sample_data[i + 4000], in TF_LITE_MICRO_TEST()
|
D | feature_provider_mock_test.cc | 37 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, populate_status); in TF_LITE_MICRO_TEST() 38 TF_LITE_MICRO_EXPECT_EQ(kFeatureSliceCount, how_many_new_slices); in TF_LITE_MICRO_TEST() 41 TF_LITE_MICRO_EXPECT_EQ(g_yes_micro_f2e59fea_nohash_1_data[i], in TF_LITE_MICRO_TEST() 57 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, populate_status); in TF_LITE_MICRO_TEST() 58 TF_LITE_MICRO_EXPECT_EQ(kFeatureSliceCount, how_many_new_slices); in TF_LITE_MICRO_TEST() 61 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/ |
D | person_detection_test.cc | 76 TF_LITE_MICRO_EXPECT_EQ(4, input->dims->size); in TF_LITE_MICRO_TEST() 77 TF_LITE_MICRO_EXPECT_EQ(1, input->dims->data[0]); in TF_LITE_MICRO_TEST() 78 TF_LITE_MICRO_EXPECT_EQ(kNumRows, input->dims->data[1]); in TF_LITE_MICRO_TEST() 79 TF_LITE_MICRO_EXPECT_EQ(kNumCols, input->dims->data[2]); in TF_LITE_MICRO_TEST() 80 TF_LITE_MICRO_EXPECT_EQ(kNumChannels, input->dims->data[3]); in TF_LITE_MICRO_TEST() 81 TF_LITE_MICRO_EXPECT_EQ(kTfLiteUInt8, input->type); in TF_LITE_MICRO_TEST() 94 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, invoke_status); in TF_LITE_MICRO_TEST() 99 TF_LITE_MICRO_EXPECT_EQ(4, output->dims->size); in TF_LITE_MICRO_TEST() 100 TF_LITE_MICRO_EXPECT_EQ(1, output->dims->data[0]); in TF_LITE_MICRO_TEST() 101 TF_LITE_MICRO_EXPECT_EQ(1, output->dims->data[1]); in TF_LITE_MICRO_TEST() [all …]
|
/external/tensorflow/tensorflow/lite/micro/examples/person_detection_experimental/ |
D | person_detection_test.cc | 79 TF_LITE_MICRO_EXPECT_EQ(4, input->dims->size); in TF_LITE_MICRO_TEST() 80 TF_LITE_MICRO_EXPECT_EQ(1, input->dims->data[0]); in TF_LITE_MICRO_TEST() 81 TF_LITE_MICRO_EXPECT_EQ(kNumRows, input->dims->data[1]); in TF_LITE_MICRO_TEST() 82 TF_LITE_MICRO_EXPECT_EQ(kNumCols, input->dims->data[2]); in TF_LITE_MICRO_TEST() 83 TF_LITE_MICRO_EXPECT_EQ(kNumChannels, input->dims->data[3]); in TF_LITE_MICRO_TEST() 84 TF_LITE_MICRO_EXPECT_EQ(kTfLiteInt8, input->type); in TF_LITE_MICRO_TEST() 97 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, invoke_status); in TF_LITE_MICRO_TEST() 102 TF_LITE_MICRO_EXPECT_EQ(2, output->dims->size); in TF_LITE_MICRO_TEST() 103 TF_LITE_MICRO_EXPECT_EQ(1, output->dims->data[0]); in TF_LITE_MICRO_TEST() 104 TF_LITE_MICRO_EXPECT_EQ(kCategoryCount, output->dims->data[1]); in TF_LITE_MICRO_TEST() [all …]
|
/external/tensorflow/tensorflow/lite/micro/examples/hello_world/ |
D | hello_world_test.cc | 55 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(kTfLiteFloat32, input->type); in TF_LITE_MICRO_TEST() 79 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, invoke_status); in TF_LITE_MICRO_TEST() 84 TF_LITE_MICRO_EXPECT_EQ(2, output->dims->size); in TF_LITE_MICRO_TEST() 85 TF_LITE_MICRO_EXPECT_EQ(1, input->dims->data[0]); in TF_LITE_MICRO_TEST() 86 TF_LITE_MICRO_EXPECT_EQ(1, input->dims->data[1]); in TF_LITE_MICRO_TEST() 87 TF_LITE_MICRO_EXPECT_EQ(kTfLiteFloat32, output->type); in TF_LITE_MICRO_TEST() [all …]
|
/external/tensorflow/tensorflow/lite/micro/examples/magic_wand/ |
D | magic_wand_test.cc | 79 TF_LITE_MICRO_EXPECT_EQ(4, input->dims->size); in TF_LITE_MICRO_TEST() 81 TF_LITE_MICRO_EXPECT_EQ(1, input->dims->data[0]); in TF_LITE_MICRO_TEST() 82 TF_LITE_MICRO_EXPECT_EQ(128, input->dims->data[1]); in TF_LITE_MICRO_TEST() 83 TF_LITE_MICRO_EXPECT_EQ(3, input->dims->data[2]); in TF_LITE_MICRO_TEST() 84 TF_LITE_MICRO_EXPECT_EQ(1, input->dims->data[3]); in TF_LITE_MICRO_TEST() 86 TF_LITE_MICRO_EXPECT_EQ(kTfLiteFloat32, input->type); in TF_LITE_MICRO_TEST() 100 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, invoke_status); in TF_LITE_MICRO_TEST() 105 TF_LITE_MICRO_EXPECT_EQ(2, output->dims->size); in TF_LITE_MICRO_TEST() 106 TF_LITE_MICRO_EXPECT_EQ(1, output->dims->data[0]); in TF_LITE_MICRO_TEST() 107 TF_LITE_MICRO_EXPECT_EQ(4, output->dims->data[1]); in TF_LITE_MICRO_TEST() [all …]
|
D | gesture_predictor_test.cc | 31 TF_LITE_MICRO_EXPECT_EQ(prediction, 3); in TF_LITE_MICRO_TEST() 36 TF_LITE_MICRO_EXPECT_EQ(prediction, 0); in TF_LITE_MICRO_TEST() 47 TF_LITE_MICRO_EXPECT_EQ(prediction, 3); in TF_LITE_MICRO_TEST() 53 TF_LITE_MICRO_EXPECT_EQ(prediction, 3); in TF_LITE_MICRO_TEST() 65 TF_LITE_MICRO_EXPECT_EQ(prediction, 3); in TF_LITE_MICRO_TEST()
|
/external/tensorflow/tensorflow/lite/experimental/microfrontend/lib/ |
D | filterbank_test.cc | 56 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 …]
|
D | window_test.cc | 55 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()
|
D | frontend_test.cc | 71 TF_LITE_MICRO_EXPECT_EQ(output.size, sizeof(expected) / sizeof(expected[0])); in TF_LITE_MICRO_TEST() 74 TF_LITE_MICRO_EXPECT_EQ(output.values[i], expected[i]); in TF_LITE_MICRO_TEST() 96 TF_LITE_MICRO_EXPECT_EQ(output.size, sizeof(expected) / sizeof(expected[0])); in TF_LITE_MICRO_TEST() 99 TF_LITE_MICRO_EXPECT_EQ(output.values[i], expected[i]); in TF_LITE_MICRO_TEST() 125 TF_LITE_MICRO_EXPECT_EQ(output.size, 0); in TF_LITE_MICRO_TEST() 126 TF_LITE_MICRO_EXPECT_EQ(output.values, nullptr); in TF_LITE_MICRO_TEST()
|
/external/tensorflow/tensorflow/lite/micro/examples/micro_speech/apollo3/ |
D | pushbutton_test.cc | 59 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, generate_1sec_status); in TF_LITE_MICRO_TEST() 90 TF_LITE_MICRO_EXPECT_EQ(4, input->dims->size); in TF_LITE_MICRO_TEST() 91 TF_LITE_MICRO_EXPECT_EQ(1, input->dims->data[0]); in TF_LITE_MICRO_TEST() 92 TF_LITE_MICRO_EXPECT_EQ(49, input->dims->data[1]); in TF_LITE_MICRO_TEST() 93 TF_LITE_MICRO_EXPECT_EQ(43, input->dims->data[2]); in TF_LITE_MICRO_TEST() 94 TF_LITE_MICRO_EXPECT_EQ(kTfLiteUInt8, input->type); in TF_LITE_MICRO_TEST() 107 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, invoke_status); in TF_LITE_MICRO_TEST() 112 TF_LITE_MICRO_EXPECT_EQ(2, output->dims->size); in TF_LITE_MICRO_TEST() 113 TF_LITE_MICRO_EXPECT_EQ(1, output->dims->data[0]); in TF_LITE_MICRO_TEST() 114 TF_LITE_MICRO_EXPECT_EQ(4, output->dims->data[1]); in TF_LITE_MICRO_TEST() [all …]
|
/external/tensorflow/tensorflow/lite/micro/examples/micro_speech/micro_features/ |
D | micro_features_generator_test.cc | 35 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, InitializeMicroFeatures(error_reporter)); in TF_LITE_MICRO_TEST() 56 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, yes_status); in TF_LITE_MICRO_TEST() 59 TF_LITE_MICRO_EXPECT_EQ(g_yes_feature_data_slice[i], in TF_LITE_MICRO_TEST() 73 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, InitializeMicroFeatures(error_reporter)); in TF_LITE_MICRO_TEST() 90 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, no_status); in TF_LITE_MICRO_TEST() 93 TF_LITE_MICRO_EXPECT_EQ(g_no_feature_data_slice[i], no_calculated_data[i]); in TF_LITE_MICRO_TEST()
|