/external/tensorflow/tensorflow/lite/core/api/ |
D | flatbuffer_conversions.h | 64 ErrorReporter* error_reporter, 70 ErrorReporter* error_reporter); 72 TfLiteStatus ParseAbs(const Operator* op, ErrorReporter* error_reporter, 75 TfLiteStatus ParseAdd(const Operator* op, ErrorReporter* error_reporter, 78 TfLiteStatus ParseAddN(const Operator* op, ErrorReporter* error_reporter, 81 TfLiteStatus ParseArgMax(const Operator* op, ErrorReporter* error_reporter, 84 TfLiteStatus ParseArgMin(const Operator* op, ErrorReporter* error_reporter, 87 TfLiteStatus ParseBatchMatMul(const Operator* op, ErrorReporter* error_reporter, 92 ErrorReporter* error_reporter, 96 TfLiteStatus ParseCeil(const Operator* op, ErrorReporter* error_reporter, [all …]
|
D | flatbuffer_conversions.cc | 67 void CheckParsePointerParams(const Operator* op, ErrorReporter* error_reporter, in CheckParsePointerParams() argument 71 TFLITE_DCHECK(error_reporter != nullptr); in CheckParsePointerParams() 81 int* buffer, ErrorReporter* error_reporter, const char* op_name) { in FlatBufferIntVectorToArray() argument 83 TF_LITE_REPORT_ERROR(error_reporter, in FlatBufferIntVectorToArray() 91 error_reporter, in FlatBufferIntVectorToArray() 136 ErrorReporter* error_reporter, in ParseOpDataTfLite() argument 165 return ParseAbs(op, error_reporter, allocator, builtin_data); in ParseOpDataTfLite() 169 return ParseAdd(op, error_reporter, allocator, builtin_data); in ParseOpDataTfLite() 173 return ParseAddN(op, error_reporter, allocator, builtin_data); in ParseOpDataTfLite() 177 return ParseArgMax(op, error_reporter, allocator, builtin_data); in ParseOpDataTfLite() [all …]
|
/external/tensorflow/tensorflow/lite/ |
D | model_builder.cc | 48 ErrorReporter* error_reporter, in GetAllocationFromFile() argument 52 allocation.reset(new MMAPAllocation(filename, error_reporter)); in GetAllocationFromFile() 54 allocation.reset(new FileCopyAllocation(filename, error_reporter)); in GetAllocationFromFile() 60 const char* filename, ErrorReporter* error_reporter) { in BuildFromFile() argument 61 error_reporter = ValidateErrorReporter(error_reporter); in BuildFromFile() 65 error_reporter, /*use_nnapi=*/true); in BuildFromFile() 66 model.reset(new FlatBufferModel(std::move(allocation), error_reporter)); in BuildFromFile() 73 ErrorReporter* error_reporter) { in VerifyAndBuildFromFile() argument 74 error_reporter = ValidateErrorReporter(error_reporter); in VerifyAndBuildFromFile() 78 error_reporter, /*use_nnapi=*/true); in VerifyAndBuildFromFile() [all …]
|
D | model_builder.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 156 ErrorReporter* error_reporter = DefaultErrorReporter()); 160 FlatBufferModel(const Model* model, ErrorReporter* error_reporter);
|
/external/tensorflow/tensorflow/lite/micro/examples/person_detection/arduino/ |
D | image_provider.cc | 72 TfLiteStatus InitCamera(tflite::ErrorReporter* error_reporter) { in InitCamera() argument 73 TF_LITE_REPORT_ERROR(error_reporter, "Attempting to start Arducam"); in InitCamera() 91 TF_LITE_REPORT_ERROR(error_reporter, "Can't communicate with Arducam"); in InitCamera() 106 TfLiteStatus PerformCapture(tflite::ErrorReporter* error_reporter) { in PerformCapture() argument 107 TF_LITE_REPORT_ERROR(error_reporter, "Starting capture"); in PerformCapture() 116 TF_LITE_REPORT_ERROR(error_reporter, "Image captured"); in PerformCapture() 124 TfLiteStatus ReadData(tflite::ErrorReporter* error_reporter) { in ReadData() argument 127 TF_LITE_REPORT_ERROR(error_reporter, "Reading %d bytes from Arducam", in ReadData() 131 TF_LITE_REPORT_ERROR(error_reporter, "Too many bytes in FIFO buffer (%d)", in ReadData() 136 TF_LITE_REPORT_ERROR(error_reporter, "No data in Arducam FIFO buffer"); in ReadData() [all …]
|
/external/tensorflow/tensorflow/lite/micro/examples/micro_speech/sparkfun_edge/ |
D | audio_provider.cc | 61 void adc_start_dma(tflite::ErrorReporter* error_reporter) { in adc_start_dma() argument 76 TF_LITE_REPORT_ERROR(error_reporter, "Error - configuring ADC DMA failed."); in adc_start_dma() 81 g_adc_dma_error_reporter = error_reporter; in adc_start_dma() 85 void adc_config0(tflite::ErrorReporter* error_reporter) { in adc_config0() argument 91 TF_LITE_REPORT_ERROR(error_reporter, in adc_config0() 98 TF_LITE_REPORT_ERROR(error_reporter, "Error - ADC0 power on failed."); in adc_config0() 112 TF_LITE_REPORT_ERROR(error_reporter, "Error - configuring ADC0 failed."); in adc_config0() 123 TF_LITE_REPORT_ERROR(error_reporter, in adc_config0() 135 TF_LITE_REPORT_ERROR(error_reporter, in adc_config0() 140 adc_start_dma(error_reporter); in adc_config0() [all …]
|
/external/tensorflow/tensorflow/lite/tools/ |
D | verifier.cc | 44 void ReportError(ErrorReporter* error_reporter, const char* format, ...) { in ReportError() argument 45 if (error_reporter) { in ReportError() 48 TF_LITE_REPORT_ERROR(error_reporter, format, args); in ReportError() 78 ErrorReporter* error_reporter) { in VerifyStringTensorBuffer() argument 81 ReportError(error_reporter, "String tensor %s is invalid (empty)", in VerifyStringTensorBuffer() 89 ReportError(error_reporter, in VerifyStringTensorBuffer() 98 ReportError(error_reporter, in VerifyStringTensorBuffer() 109 ReportError(error_reporter, in VerifyStringTensorBuffer() 119 ReportError(error_reporter, in VerifyStringTensorBuffer() 126 ReportError(error_reporter, in VerifyStringTensorBuffer() [all …]
|
/external/tensorflow/tensorflow/lite/micro/examples/person_detection/apollo3evb/ |
D | image_provider.cc | 82 void boost_mode_enable(tflite::ErrorReporter* error_reporter, bool bEnable) { in boost_mode_enable() argument 90 TF_LITE_REPORT_ERROR(error_reporter, "Apollo3 Burst Mode is Available\n"); in boost_mode_enable() 92 TF_LITE_REPORT_ERROR(error_reporter, in boost_mode_enable() 97 TF_LITE_REPORT_ERROR(error_reporter, in boost_mode_enable() 104 TF_LITE_REPORT_ERROR(error_reporter, in boost_mode_enable() 108 TF_LITE_REPORT_ERROR(error_reporter, in boost_mode_enable() 116 TF_LITE_REPORT_ERROR(error_reporter, in boost_mode_enable() 120 TF_LITE_REPORT_ERROR(error_reporter, in boost_mode_enable() 128 TfLiteStatus InitCamera(tflite::ErrorReporter* error_reporter) { in InitCamera() argument 129 TF_LITE_REPORT_ERROR(error_reporter, "Initializing HM01B0...\n"); in InitCamera() [all …]
|
/external/tensorflow/tensorflow/lite/micro/examples/person_detection/esp/ |
D | image_provider.cc | 35 TfLiteStatus InitCamera(tflite::ErrorReporter* error_reporter) { in InitCamera() argument 38 TF_LITE_REPORT_ERROR(error_reporter, "Camera init failed\n"); in InitCamera() 41 TF_LITE_REPORT_ERROR(error_reporter, "Camera Initialized\n"); in InitCamera() 54 TfLiteStatus PerformCapture(tflite::ErrorReporter* error_reporter, in PerformCapture() argument 61 TF_LITE_REPORT_ERROR(error_reporter, "Image Captured\n"); in PerformCapture() 69 TfLiteStatus GetImage(tflite::ErrorReporter* error_reporter, int image_width, in GetImage() argument 73 TfLiteStatus init_status = InitCamera(error_reporter); in GetImage() 75 TF_LITE_REPORT_ERROR(error_reporter, "InitCamera failed\n"); in GetImage() 82 TfLiteStatus capture_status = PerformCapture(error_reporter, image_data); in GetImage() 84 TF_LITE_REPORT_ERROR(error_reporter, "PerformCapture failed\n"); in GetImage()
|
/external/tensorflow/tensorflow/lite/micro/examples/person_detection/sparkfun_edge/ |
D | image_provider.cc | 91 void burst_mode_enable(tflite::ErrorReporter* error_reporter, bool bEnable) { in burst_mode_enable() argument 99 TF_LITE_REPORT_ERROR(error_reporter, "Apollo3 Burst Mode is Available\n"); in burst_mode_enable() 101 TF_LITE_REPORT_ERROR(error_reporter, in burst_mode_enable() 106 TF_LITE_REPORT_ERROR(error_reporter, in burst_mode_enable() 113 TF_LITE_REPORT_ERROR(error_reporter, in burst_mode_enable() 117 TF_LITE_REPORT_ERROR(error_reporter, in burst_mode_enable() 125 TF_LITE_REPORT_ERROR(error_reporter, in burst_mode_enable() 129 TF_LITE_REPORT_ERROR(error_reporter, in burst_mode_enable() 137 TfLiteStatus InitCamera(tflite::ErrorReporter* error_reporter) { in InitCamera() argument 138 TF_LITE_REPORT_ERROR(error_reporter, "Initializing HM01B0...\n"); in InitCamera() [all …]
|
/external/tensorflow/tensorflow/lite/micro/examples/micro_speech/ |
D | main_functions.cc | 32 tflite::ErrorReporter* error_reporter = nullptr; variable 57 error_reporter = µ_error_reporter; in setup() 63 TF_LITE_REPORT_ERROR(error_reporter, in setup() 78 static tflite::MicroMutableOpResolver<4> micro_op_resolver(error_reporter); in setup() 94 model, micro_op_resolver, tensor_arena, kTensorArenaSize, error_reporter); in setup() 100 TF_LITE_REPORT_ERROR(error_reporter, "AllocateTensors() failed"); in setup() 110 TF_LITE_REPORT_ERROR(error_reporter, in setup() 123 static RecognizeCommands static_recognizer(error_reporter); in setup() 135 error_reporter, previous_time, current_time, &how_many_new_slices); in loop() 137 TF_LITE_REPORT_ERROR(error_reporter, "Feature generation failed"); in loop() [all …]
|
/external/tensorflow/tensorflow/lite/micro/examples/micro_speech/ceva/ |
D | main_functions.cc | 58 tflite::ErrorReporter* error_reporter = nullptr; variable 81 error_reporter = µ_error_reporter; in setup_tf() 87 TF_LITE_REPORT_ERROR(error_reporter, in setup_tf() 102 static tflite::MicroMutableOpResolver<4> micro_op_resolver(error_reporter); in setup_tf() 117 model, micro_op_resolver, tensor_arena, kTensorArenaSize, error_reporter); in setup_tf() 123 TF_LITE_REPORT_ERROR(error_reporter, "AllocateTensors() failed"); in setup_tf() 133 TF_LITE_REPORT_ERROR(error_reporter, in setup_tf() 146 static RecognizeCommands static_recognizer(error_reporter); in setup_tf() 160 error_reporter, previous_time, current_time, &how_many_new_slices); in detection_loop() 165 TF_LITE_REPORT_ERROR(error_reporter, "Feature generation failed"); in detection_loop() [all …]
|
/external/tensorflow/tensorflow/lite/micro/examples/magic_wand/ |
D | main_functions.cc | 31 tflite::ErrorReporter* error_reporter = nullptr; variable 51 error_reporter = µ_error_reporter; in setup() 57 TF_LITE_REPORT_ERROR(error_reporter, in setup() 78 model, micro_op_resolver, tensor_arena, kTensorArenaSize, error_reporter); in setup() 90 TF_LITE_REPORT_ERROR(error_reporter, in setup() 97 TfLiteStatus setup_status = SetupAccelerometer(error_reporter); in setup() 99 TF_LITE_REPORT_ERROR(error_reporter, "Set up failed\n"); in setup() 106 ReadAccelerometer(error_reporter, model_input->data.f, input_length); in loop() 113 TF_LITE_REPORT_ERROR(error_reporter, "Invoke failed on index: %d\n", in loop() 121 HandleOutput(error_reporter, gesture_index); in loop()
|
/external/tensorflow/tensorflow/lite/micro/examples/micro_speech/apollo3evb/ |
D | audio_provider.cc | 139 void enable_burst_mode(tflite::ErrorReporter* error_reporter) { in enable_burst_mode() argument 147 TF_LITE_REPORT_ERROR(error_reporter, "Apollo3 Burst Mode is Available\n"); in enable_burst_mode() 149 TF_LITE_REPORT_ERROR(error_reporter, in enable_burst_mode() 153 TF_LITE_REPORT_ERROR(error_reporter, in enable_burst_mode() 160 TF_LITE_REPORT_ERROR(error_reporter, in enable_burst_mode() 164 TF_LITE_REPORT_ERROR(error_reporter, in enable_burst_mode() 234 void pdm_start_dma(tflite::ErrorReporter* error_reporter) { in pdm_start_dma() argument 249 TF_LITE_REPORT_ERROR(error_reporter, "Error - configuring PDM DMA failed."); in pdm_start_dma() 374 TfLiteStatus InitAudioRecording(tflite::ErrorReporter* error_reporter) { in InitAudioRecording() argument 378 TF_LITE_REPORT_ERROR(error_reporter, in InitAudioRecording() [all …]
|
/external/tensorflow/tensorflow/lite/micro/examples/person_detection/ |
D | main_functions.cc | 30 tflite::ErrorReporter* error_reporter = nullptr; variable 55 error_reporter = µ_error_reporter; in setup() 61 TF_LITE_REPORT_ERROR(error_reporter, in setup() 86 model, micro_op_resolver, tensor_arena, kTensorArenaSize, error_reporter); in setup() 92 TF_LITE_REPORT_ERROR(error_reporter, "AllocateTensors() failed"); in setup() 103 if (kTfLiteOk != GetImage(error_reporter, kNumCols, kNumRows, kNumChannels, in loop() 105 TF_LITE_REPORT_ERROR(error_reporter, "Image capture failed."); in loop() 110 TF_LITE_REPORT_ERROR(error_reporter, "Invoke failed."); in loop() 118 RespondToDetection(error_reporter, person_score, no_person_score); in loop()
|
/external/tensorflow/tensorflow/lite/tools/optimize/ |
D | quantization_utils.h | 48 ErrorReporter* error_reporter); 67 ErrorReporter* error_reporter); 90 ErrorReporter* error_reporter); 95 ErrorReporter* error_reporter); 103 ErrorReporter* error_reporter); 108 ErrorReporter* error_reporter); 113 ErrorReporter* error_reporter); 123 ErrorReporter* error_reporter); 132 ErrorReporter* error_reporter); 141 int per_axis_index, ErrorReporter* error_reporter); [all …]
|
D | quantize_model.cc | 145 ErrorReporter* error_reporter) { in QuantizeBias() argument 147 TF_LITE_REPORT_ERROR(error_reporter, "Expected bias tensor shape to be 1."); in QuantizeBias() 152 TF_LITE_ENSURE(error_reporter, weight_tensor->quantization); in QuantizeBias() 158 error_reporter, in QuantizeBias() 165 TF_LITE_REPORT_ERROR(error_reporter, in QuantizeBias() 171 TF_LITE_REPORT_ERROR(error_reporter, in QuantizeBias() 179 weight_scales.data(), channel_dim_size, error_reporter); in QuantizeBias() 183 weight_scales.data(), channel_dim_size, error_reporter); in QuantizeBias() 188 error_reporter, in QuantizeBias() 197 error_reporter); in QuantizeBias() [all …]
|
D | quantization_utils.cc | 104 ErrorReporter* error_reporter) { in GetQuantizationParams() argument 117 error_reporter, in GetQuantizationParams() 138 ErrorReporter* error_reporter) { in FillPerChannelMinMax() argument 141 error_reporter, in FillPerChannelMinMax() 146 TF_LITE_REPORT_ERROR(error_reporter, in FillPerChannelMinMax() 153 error_reporter, in FillPerChannelMinMax() 195 ErrorReporter* error_reporter) { in GetSymmetricScalesFromMaxMin() argument 198 TF_LITE_REPORT_ERROR(error_reporter, in GetSymmetricScalesFromMaxMin() 203 TF_LITE_REPORT_ERROR(error_reporter, in GetSymmetricScalesFromMaxMin() 208 TF_LITE_REPORT_ERROR(error_reporter, in GetSymmetricScalesFromMaxMin() [all …]
|
/external/tensorflow/tensorflow/lite/micro/examples/micro_speech/osx/ |
D | audio_provider.cc | 32 #define RETURN_IF_OS_ERROR(error, error_reporter) \ argument 35 TF_LITE_REPORT_ERROR(error_reporter, "Error: %s:%d (%d)\n", __FILE__, \ 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/micro/examples/image_recognition_experimental/ |
D | main.cc | 43 tflite::ErrorReporter* error_reporter = µ_error_reporter; in main() local 45 if (InitCamera(error_reporter) != kTfLiteOk) { in main() 46 TF_LITE_REPORT_ERROR(error_reporter, "Failed to init camera."); in main() 52 TF_LITE_REPORT_ERROR(error_reporter, in main() 69 tensor_arena_size, error_reporter); in main() 75 GetImage(error_reporter, IN_IMG_WIDTH, IN_IMG_HEIGHT, NUM_OUT_CH, in main() 78 ResizeConvertImage(error_reporter, IN_IMG_WIDTH, IN_IMG_HEIGHT, NUM_IN_CH, in main() 83 TF_LITE_REPORT_ERROR(error_reporter, "Wrong input type."); in main() 88 TF_LITE_REPORT_ERROR(error_reporter, "Invoke failed."); in main()
|
/external/tensorflow/tensorflow/lite/micro/ |
D | recording_micro_allocator.cc | 28 ErrorReporter* error_reporter) in RecordingMicroAllocator() argument 29 : MicroAllocator(recording_memory_allocator, error_reporter), in RecordingMicroAllocator() 33 uint8_t* tensor_arena, size_t arena_size, ErrorReporter* error_reporter) { in Create() argument 34 TFLITE_DCHECK(error_reporter != nullptr); in Create() 37 RecordingSimpleMemoryAllocator::Create(error_reporter, tensor_arena, in Create() 44 RecordingMicroAllocator(simple_memory_allocator, error_reporter); in Create() 66 TF_LITE_REPORT_ERROR(error_reporter(), "Invalid allocation type supplied: %d", in GetRecordedAllocation() 78 error_reporter(), in PrintAllocations() 82 error_reporter(), in PrintAllocations() 86 error_reporter(), in PrintAllocations() [all …]
|
D | micro_error_reporter_test.cc | 21 tflite::ErrorReporter* error_reporter = µ_error_reporter; in main() local 22 TF_LITE_REPORT_ERROR(error_reporter, "Number: %d", 42); in main() 23 TF_LITE_REPORT_ERROR(error_reporter, "Badly-formed format string %"); in main() 24 TF_LITE_REPORT_ERROR(error_reporter, in main() 26 TF_LITE_REPORT_ERROR(error_reporter, "~~~%s~~~", "ALL TESTS PASSED"); in main()
|
/external/tensorflow/tensorflow/lite/micro/examples/magic_wand/sparkfun_edge/ |
D | accelerometer_handler.cc | 102 TfLiteStatus SetupAccelerometer(tflite::ErrorReporter* error_reporter) { in SetupAccelerometer() argument 127 TF_LITE_REPORT_ERROR(error_reporter, in SetupAccelerometer() 138 TF_LITE_REPORT_ERROR(error_reporter, "Failed to enable FIFO buffer."); in SetupAccelerometer() 142 TF_LITE_REPORT_ERROR(error_reporter, "Failed to clear FIFO buffer."); in SetupAccelerometer() 147 TF_LITE_REPORT_ERROR(error_reporter, "Failed to set streaming mode."); in SetupAccelerometer() 151 TF_LITE_REPORT_ERROR(error_reporter, "Magic starts!"); in SetupAccelerometer() 156 bool ReadAccelerometer(tflite::ErrorReporter* error_reporter, float* input, in ReadAccelerometer() argument 161 TF_LITE_REPORT_ERROR(error_reporter, "Failed to get FIFO status."); in ReadAccelerometer() 183 TF_LITE_REPORT_ERROR(error_reporter, "Failed to get raw data."); in ReadAccelerometer()
|
/external/tensorflow/tensorflow/lite/micro/examples/micro_speech/apollo3/ |
D | pushbutton_test.cc | 36 TfLiteStatus GenerateSimpleFeatures_1sec(tflite::ErrorReporter* error_reporter, in GenerateSimpleFeatures_1sec() argument 41 GenerateSimpleFeatures(error_reporter, input + i * 320, 480, 43, in GenerateSimpleFeatures_1sec() 53 tflite::ErrorReporter* error_reporter = µ_error_reporter; in TF_LITE_MICRO_TEST() local 57 error_reporter, captured_data, preprocessed_data); in TF_LITE_MICRO_TEST() 64 TF_LITE_REPORT_ERROR(error_reporter, in TF_LITE_MICRO_TEST() 81 error_reporter); in TF_LITE_MICRO_TEST() 103 TF_LITE_REPORT_ERROR(error_reporter, "Invoke failed\n"); in TF_LITE_MICRO_TEST() 127 TF_LITE_REPORT_ERROR(error_reporter, "Ran successfully\n"); in TF_LITE_MICRO_TEST()
|
/external/tensorflow/tensorflow/lite/micro/examples/hello_world/ |
D | main_functions.cc | 29 tflite::ErrorReporter* error_reporter = nullptr; variable 48 error_reporter = µ_error_reporter; in setup() 54 TF_LITE_REPORT_ERROR(error_reporter, in setup() 67 model, resolver, tensor_arena, kTensorArenaSize, error_reporter); in setup() 73 TF_LITE_REPORT_ERROR(error_reporter, "AllocateTensors() failed"); in setup() 103 TF_LITE_REPORT_ERROR(error_reporter, "Invoke failed on x: %f\n", in loop() 115 HandleOutput(error_reporter, x, y); in loop()
|