/external/tensorflow/tensorflow/lite/tools/ |
D | verifier.cc | 28 void ReportError(ErrorReporter* error_reporter, const char* format, ...) { in ReportError() argument 29 if (error_reporter) { in ReportError() 32 error_reporter->Report(format, args); in ReportError() 58 ErrorReporter* error_reporter) { in VerifyStringTensorBuffer() argument 64 ReportError(error_reporter, in VerifyStringTensorBuffer() 73 ReportError(error_reporter, in VerifyStringTensorBuffer() 84 ReportError(error_reporter, in VerifyStringTensorBuffer() 93 ReportError(error_reporter, in VerifyStringTensorBuffer() 100 ReportError(error_reporter, in VerifyStringTensorBuffer() 110 ErrorReporter* error_reporter) { in VerifyNumericTensorBuffer() argument [all …]
|
/external/tensorflow/tensorflow/lite/experimental/micro/examples/micro_speech/sparkfun_edge/ |
D | audio_provider.cc | 56 void adc_start_dma(tflite::ErrorReporter* error_reporter) { in adc_start_dma() argument 71 error_reporter->Report("Error - configuring ADC DMA failed."); in adc_start_dma() 76 g_adc_dma_error_reporter = error_reporter; in adc_start_dma() 80 void adc_config0(tflite::ErrorReporter* error_reporter) { in adc_config0() argument 86 error_reporter->Report("Error - reservation of the ADC0 instance failed."); in adc_config0() 92 error_reporter->Report("Error - ADC0 power on failed."); in adc_config0() 106 error_reporter->Report("Error - configuring ADC0 failed."); in adc_config0() 117 error_reporter->Report("Error - configuring ADC Slot 2 failed."); in adc_config0() 128 error_reporter->Report("Error - configuring ADC Slot 1 failed."); in adc_config0() 132 adc_start_dma(error_reporter); in adc_config0() [all …]
|
/external/tensorflow/tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/ |
D | frontend_util.cc | 29 int FrontendPopulateState(tflite::ErrorReporter* error_reporter, in FrontendPopulateState() argument 34 if (!WindowPopulateState(error_reporter, &config->window, &state->window, in FrontendPopulateState() 36 error_reporter->Report("Failed to populate window state"); in FrontendPopulateState() 40 if (!FftPopulateState(error_reporter, &state->fft, state->window.size)) { in FrontendPopulateState() 41 error_reporter->Report("Failed to populate fft state"); in FrontendPopulateState() 46 if (!FilterbankPopulateState(error_reporter, &config->filterbank, in FrontendPopulateState() 49 error_reporter->Report("Failed to populate filterbank state"); in FrontendPopulateState() 53 if (!NoiseReductionPopulateState(error_reporter, &config->noise_reduction, in FrontendPopulateState() 56 error_reporter->Report("Failed to populate noise reduction state"); in FrontendPopulateState() 63 error_reporter, &config->pcan_gain_control, &state->pcan_gain_control, in FrontendPopulateState() [all …]
|
D | filterbank_test.cc | 52 tflite::ErrorReporter* error_reporter = µ_error_reporter; in TF_LITE_MICRO_TEST() local 57 error_reporter, &config.config_, &state, kSampleRate, kSpectrumSize)); in TF_LITE_MICRO_TEST() 64 tflite::ErrorReporter* error_reporter = µ_error_reporter; in TF_LITE_MICRO_TEST() local 69 error_reporter, &config.config_, &state, kSampleRate, kSpectrumSize)); in TF_LITE_MICRO_TEST() 76 tflite::ErrorReporter* error_reporter = µ_error_reporter; in TF_LITE_MICRO_TEST() local 81 error_reporter, &config.config_, &state, kSampleRate, kSpectrumSize)); in TF_LITE_MICRO_TEST() 94 tflite::ErrorReporter* error_reporter = µ_error_reporter; in TF_LITE_MICRO_TEST() local 99 error_reporter, &config.config_, &state, kSampleRate, kSpectrumSize)); in TF_LITE_MICRO_TEST() 112 tflite::ErrorReporter* error_reporter = µ_error_reporter; in TF_LITE_MICRO_TEST() local 117 error_reporter, &config.config_, &state, kSampleRate, kSpectrumSize)); in TF_LITE_MICRO_TEST() [all …]
|
D | window_test.cc | 47 tflite::ErrorReporter* error_reporter = µ_error_reporter; in TF_LITE_MICRO_TEST() local 51 TF_LITE_MICRO_EXPECT(WindowPopulateState(error_reporter, &config.config_, in TF_LITE_MICRO_TEST() 67 tflite::ErrorReporter* error_reporter = µ_error_reporter; in TF_LITE_MICRO_TEST() local 71 TF_LITE_MICRO_EXPECT(WindowPopulateState(error_reporter, &config.config_, in TF_LITE_MICRO_TEST() 87 tflite::ErrorReporter* error_reporter = µ_error_reporter; in TF_LITE_MICRO_TEST() local 91 TF_LITE_MICRO_EXPECT(WindowPopulateState(error_reporter, &config.config_, in TF_LITE_MICRO_TEST() 111 tflite::ErrorReporter* error_reporter = µ_error_reporter; in TF_LITE_MICRO_TEST() local 115 TF_LITE_MICRO_EXPECT(WindowPopulateState(error_reporter, &config.config_, in TF_LITE_MICRO_TEST() 128 tflite::ErrorReporter* error_reporter = µ_error_reporter; in TF_LITE_MICRO_TEST() local 132 TF_LITE_MICRO_EXPECT(WindowPopulateState(error_reporter, &config.config_, in TF_LITE_MICRO_TEST() [all …]
|
D | micro_features_generator_test.cc | 32 tflite::ErrorReporter* error_reporter = µ_error_reporter; in TF_LITE_MICRO_TEST() local 34 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, InitializeMicroFeatures(error_reporter)); in TF_LITE_MICRO_TEST() 53 error_reporter, g_yes_30ms_sample_data, g_yes_30ms_sample_data_size, in TF_LITE_MICRO_TEST() 61 error_reporter->Report("Expected value %d but found %d", in TF_LITE_MICRO_TEST() 70 tflite::ErrorReporter* error_reporter = µ_error_reporter; in TF_LITE_MICRO_TEST() local 72 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, InitializeMicroFeatures(error_reporter)); in TF_LITE_MICRO_TEST() 87 error_reporter, g_no_30ms_sample_data, g_no_30ms_sample_data_size, in TF_LITE_MICRO_TEST() 94 error_reporter->Report("Expected value %d but found %d", in TF_LITE_MICRO_TEST()
|
D | frontend_test.cc | 61 tflite::ErrorReporter* error_reporter = µ_error_reporter; in TF_LITE_MICRO_TEST() local 65 TF_LITE_MICRO_EXPECT(FrontendPopulateState(error_reporter, &config.config_, in TF_LITE_MICRO_TEST() 83 tflite::ErrorReporter* error_reporter = µ_error_reporter; in TF_LITE_MICRO_TEST() local 87 TF_LITE_MICRO_EXPECT(FrontendPopulateState(error_reporter, &config.config_, in TF_LITE_MICRO_TEST() 109 tflite::ErrorReporter* error_reporter = µ_error_reporter; in TF_LITE_MICRO_TEST() local 113 TF_LITE_MICRO_EXPECT(FrontendPopulateState(error_reporter, &config.config_, in TF_LITE_MICRO_TEST()
|
/external/tensorflow/tensorflow/lite/ |
D | model.cc | 68 ErrorReporter* error_reporter, in GetAllocationFromFile() argument 73 allocation.reset(new NNAPIAllocation(filename, error_reporter)); in GetAllocationFromFile() 75 allocation.reset(new MMAPAllocation(filename, error_reporter)); in GetAllocationFromFile() 77 allocation.reset(new FileCopyAllocation(filename, error_reporter)); in GetAllocationFromFile() 83 const char* filename, ErrorReporter* error_reporter) { in BuildFromFile() argument 84 error_reporter = ValidateErrorReporter(error_reporter); in BuildFromFile() 88 error_reporter, /*use_nnapi=*/true); in BuildFromFile() 89 model.reset(new FlatBufferModel(std::move(allocation), error_reporter)); in BuildFromFile() 96 ErrorReporter* error_reporter) { in VerifyAndBuildFromFile() argument 97 error_reporter = ValidateErrorReporter(error_reporter); in VerifyAndBuildFromFile() [all …]
|
D | model.h | 71 ErrorReporter* error_reporter = DefaultErrorReporter()); 84 ErrorReporter* error_reporter = DefaultErrorReporter()); 96 ErrorReporter* error_reporter = DefaultErrorReporter()); 111 ErrorReporter* error_reporter = DefaultErrorReporter()); 120 ErrorReporter* error_reporter = DefaultErrorReporter()); 132 ErrorReporter* error_reporter() const { return error_reporter_; } in error_reporter() function 146 ErrorReporter* error_reporter = DefaultErrorReporter()); 150 FlatBufferModel(const Model* model, ErrorReporter* error_reporter); 189 ErrorReporter* error_reporter = DefaultErrorReporter());
|
D | allocation.h | 33 Allocation(ErrorReporter* error_reporter) : error_reporter_(error_reporter) {} in Allocation() argument 49 MMAPAllocation(const char* filename, ErrorReporter* error_reporter); 66 FileCopyAllocation(const char* filename, ErrorReporter* error_reporter); 84 ErrorReporter* error_reporter);
|
/external/tensorflow/tensorflow/lite/experimental/micro/examples/micro_speech/ |
D | main.cc | 31 tflite::ErrorReporter* error_reporter = µ_error_reporter; in main() local 38 error_reporter->Report( in main() 58 error_reporter); in main() 66 error_reporter->Report("Bad input tensor parameters in model"); in main() 75 RecognizeCommands recognizer(error_reporter); in main() 84 error_reporter, previous_time, current_time, &how_many_new_slices); in main() 86 error_reporter->Report("Feature generation failed"); in main() 99 error_reporter->Report("Invoke failed"); in main() 123 error_reporter->Report( in main() 130 RespondToCommand(error_reporter, current_time, found_command, score, in main()
|
D | recognize_commands_test.cc | 25 tflite::ErrorReporter* error_reporter = µ_error_reporter; in TF_LITE_MICRO_TEST() local 27 PreviousResultsQueue queue(error_reporter); in TF_LITE_MICRO_TEST() 57 tflite::ErrorReporter* error_reporter = µ_error_reporter; in TF_LITE_MICRO_TEST() local 59 PreviousResultsQueue queue(error_reporter); in TF_LITE_MICRO_TEST() 77 tflite::ErrorReporter* error_reporter = µ_error_reporter; in TF_LITE_MICRO_TEST() local 79 RecognizeCommands recognize_commands(error_reporter); in TF_LITE_MICRO_TEST() 95 tflite::ErrorReporter* error_reporter = µ_error_reporter; in TF_LITE_MICRO_TEST() local 97 RecognizeCommands recognize_commands(error_reporter, 1000, 51); in TF_LITE_MICRO_TEST() 154 tflite::ErrorReporter* error_reporter = µ_error_reporter; in TF_LITE_MICRO_TEST() local 156 RecognizeCommands recognize_commands(error_reporter, 1000, 51); in TF_LITE_MICRO_TEST() [all …]
|
D | feature_provider.cc | 35 tflite::ErrorReporter* error_reporter, int32_t last_time_in_ms, in PopulateFeatureData() argument 38 error_reporter->Report("Requested feature_data_ size %d doesn't match %d", in PopulateFeatureData() 51 TfLiteStatus init_status = InitializeMicroFeatures(error_reporter); in PopulateFeatureData() 98 GetAudioSamples(error_reporter, slice_start_ms, kFeatureSliceDurationMs, in PopulateFeatureData() 101 error_reporter->Report("Audio data size %d too small, want %d", in PopulateFeatureData() 108 error_reporter, audio_samples, audio_samples_size, kFeatureSliceSize, in PopulateFeatureData()
|
D | audio_provider_mock_test.cc | 32 tflite::ErrorReporter* error_reporter = µ_error_reporter; in TF_LITE_MICRO_TEST() local 37 GetAudioSamples(error_reporter, 0, kFeatureSliceDurationMs, in TF_LITE_MICRO_TEST() 46 get_status = GetAudioSamples(error_reporter, 500, kFeatureSliceDurationMs, in TF_LITE_MICRO_TEST() 56 get_status = GetAudioSamples(error_reporter, 1500, kFeatureSliceDurationMs, in TF_LITE_MICRO_TEST() 65 get_status = GetAudioSamples(error_reporter, 12250, kFeatureSliceDurationMs, in TF_LITE_MICRO_TEST()
|
D | micro_speech_test.cc | 31 tflite::ErrorReporter* error_reporter = µ_error_reporter; in TF_LITE_MICRO_TEST() local 38 error_reporter->Report( in TF_LITE_MICRO_TEST() 55 error_reporter); in TF_LITE_MICRO_TEST() 78 error_reporter->Report("Invoke failed\n"); in TF_LITE_MICRO_TEST() 114 error_reporter->Report("Invoke failed\n"); in TF_LITE_MICRO_TEST() 135 error_reporter->Report("Ran successfully\n"); in TF_LITE_MICRO_TEST()
|
/external/tensorflow/tensorflow/lite/experimental/micro/examples/micro_speech/osx/ |
D | audio_provider.cc | 32 #define RETURN_IF_OS_ERROR(error, error_reporter) \ argument 35 error_reporter->Report("Error: %s:%d (%d)\n", __FILE__, __LINE__, \ 62 TfLiteStatus InitAudioRecording(tflite::ErrorReporter* error_reporter) { in InitAudioRecording() argument 80 error_reporter); in InitAudioRecording() 86 error_reporter, nullptr, nullptr, 0, &queue), in InitAudioRecording() 87 error_reporter); in InitAudioRecording() 94 error_reporter); in InitAudioRecording() 96 error_reporter); in InitAudioRecording() 100 RETURN_IF_OS_ERROR(AudioQueueStart(queue, nullptr), error_reporter); in InitAudioRecording() 107 TfLiteStatus GetAudioSamples(tflite::ErrorReporter* error_reporter, in GetAudioSamples() argument [all …]
|
/external/tensorflow/tensorflow/lite/java/src/main/native/ |
D | nativeinterpreterwrapper_jni.cc | 160 BufferErrorReporter* error_reporter = in Java_org_tensorflow_lite_NativeInterpreterWrapper_allocateTensors() local 162 if (error_reporter == nullptr) return; in Java_org_tensorflow_lite_NativeInterpreterWrapper_allocateTensors() 169 error_reporter->CachedErrorMessage()); in Java_org_tensorflow_lite_NativeInterpreterWrapper_allocateTensors() 269 BufferErrorReporter* error_reporter = in Java_org_tensorflow_lite_NativeInterpreterWrapper_createErrorReporter() local 271 return reinterpret_cast<jlong>(error_reporter); in Java_org_tensorflow_lite_NativeInterpreterWrapper_createErrorReporter() 290 BufferErrorReporter* error_reporter = in Java_org_tensorflow_lite_NativeInterpreterWrapper_createModel() local 292 if (error_reporter == nullptr) return 0; in Java_org_tensorflow_lite_NativeInterpreterWrapper_createModel() 299 path, verifier.get(), error_reporter); in Java_org_tensorflow_lite_NativeInterpreterWrapper_createModel() 304 path, error_reporter->CachedErrorMessage()); in Java_org_tensorflow_lite_NativeInterpreterWrapper_createModel() 315 BufferErrorReporter* error_reporter = in Java_org_tensorflow_lite_NativeInterpreterWrapper_createModelWithBuffer() local [all …]
|
/external/tensorflow/tensorflow/lite/experimental/micro/examples/micro_speech/apollo3/ |
D | pushbutton_test.cc | 37 TfLiteStatus GenerateSimpleFeatures_1sec(tflite::ErrorReporter* error_reporter, in GenerateSimpleFeatures_1sec() argument 42 GenerateSimpleFeatures(error_reporter, input + i * 320, 480, 43, in GenerateSimpleFeatures_1sec() 54 tflite::ErrorReporter* error_reporter = µ_error_reporter; in TF_LITE_MICRO_TEST() local 58 error_reporter, captured_data, preprocessed_data); in TF_LITE_MICRO_TEST() 66 error_reporter->Report( in TF_LITE_MICRO_TEST() 83 error_reporter); in TF_LITE_MICRO_TEST() 105 error_reporter->Report("Invoke failed\n"); in TF_LITE_MICRO_TEST() 129 error_reporter->Report("Ran successfully\n"); in TF_LITE_MICRO_TEST()
|
/external/tensorflow/tensorflow/lite/experimental/micro/ |
D | micro_error_reporter_test.cc | 20 tflite::ErrorReporter* error_reporter = µ_error_reporter; in main() local 21 error_reporter->Report("Number: %d", 42); in main() 22 error_reporter->Report("Badly-formed format string %"); in main() 23 error_reporter->Report("Another % badly-formed %% format string"); in main() 24 error_reporter->Report("~~~%s~~~", "ALL TESTS PASSED"); in main()
|
D | simple_tensor_allocator.cc | 58 ErrorReporter* error_reporter) { in BytesRequired() argument 61 &tf_lite_type, error_reporter)); in BytesRequired() 63 TfLiteTypeSizeOf(tf_lite_type, type_size, error_reporter)); in BytesRequired() 81 ErrorReporter* error_reporter, TfLiteTensor* result) { in AllocateTensor() argument 83 &result->type, error_reporter)); in AllocateTensor() 96 error_reporter)); in AllocateTensor() 110 error_reporter)); in AllocateTensor() 118 error_reporter->Report( in AllocateTensor()
|
/external/tensorflow/tensorflow/lite/core/api/ |
D | op_resolver.cc | 22 ErrorReporter* error_reporter, const TfLiteRegistration** registration) { in GetRegistrationFromOpCode() argument 30 error_reporter->Report( in GetRegistrationFromOpCode() 38 error_reporter->Report( in GetRegistrationFromOpCode() 44 error_reporter->Report( in GetRegistrationFromOpCode() 51 error_reporter->Report( in GetRegistrationFromOpCode()
|
D | flatbuffer_conversions.cc | 33 int* buffer, ErrorReporter* error_reporter, const char* op_name) { in FlatBufferIntVectorToArray() argument 35 error_reporter->Report("Input array not provided for operation '%s'.\n", in FlatBufferIntVectorToArray() 41 error_reporter->Report( in FlatBufferIntVectorToArray() 57 ErrorReporter* error_reporter) { in ConvertTensorType() argument 87 error_reporter->Report("Unimplemented data type %s (%d) in tensor\n", in ConvertTensorType() 101 ErrorReporter* error_reporter, in ParseOpData() argument 173 ¶ms->in_data_type, error_reporter); in ParseOpData() 176 ¶ms->out_data_type, error_reporter); in ParseOpData() 296 error_reporter->Report("Unhandled fully-connected weights format."); in ParseOpData() 461 sizeof(params->shape), new_shape, params->shape, error_reporter, in ParseOpData() [all …]
|
/external/tensorflow/tensorflow/lite/experimental/micro/examples/micro_speech/simple_features/ |
D | simple_features_generator_test.cc | 29 tflite::ErrorReporter* error_reporter = µ_error_reporter; in TF_LITE_MICRO_TEST() local 33 error_reporter, g_yes_30ms_sample_data, g_yes_30ms_sample_data_size, in TF_LITE_MICRO_TEST() 41 error_reporter->Report("Expected value %d but found %d", in TF_LITE_MICRO_TEST() 49 error_reporter, g_no_30ms_sample_data, g_no_30ms_sample_data_size, in TF_LITE_MICRO_TEST() 56 error_reporter->Report("Expected value %d but found %d", in TF_LITE_MICRO_TEST()
|
/external/tensorflow/tensorflow/contrib/lite/ |
D | allocation.h | 34 Allocation(ErrorReporter* error_reporter) : error_reporter_(error_reporter) {} in Allocation() argument 50 MMAPAllocation(const char* filename, ErrorReporter* error_reporter); 67 FileCopyAllocation(const char* filename, ErrorReporter* error_reporter); 85 ErrorReporter* error_reporter);
|
/external/tensorflow/tensorflow/lite/python/interpreter_wrapper/ |
D | interpreter_wrapper.cc | 88 std::unique_ptr<PythonErrorReporter> error_reporter, in CreateInterpreterWrapper() argument 91 *error_msg = error_reporter->message(); in CreateInterpreterWrapper() 98 *error_msg = error_reporter->message(); in CreateInterpreterWrapper() 103 new InterpreterWrapper(std::move(model), std::move(error_reporter), in CreateInterpreterWrapper() 110 std::unique_ptr<PythonErrorReporter> error_reporter, in InterpreterWrapper() argument 114 error_reporter_(std::move(error_reporter)), in InterpreterWrapper() 410 std::unique_ptr<PythonErrorReporter> error_reporter(new PythonErrorReporter); in CreateWrapperCPPFromFile() local 412 tflite::FlatBufferModel::BuildFromFile(model_path, error_reporter.get()); in CreateWrapperCPPFromFile() 413 return CreateInterpreterWrapper(std::move(model), std::move(error_reporter), in CreateWrapperCPPFromFile() 421 std::unique_ptr<PythonErrorReporter> error_reporter(new PythonErrorReporter); in CreateWrapperCPPFromBuffer() local [all …]
|