STT-tensorflow/tensorflow/lite/profiling
Mihai Maruseac e11f55585f [tflite]: Insert nullptr checks when obtaining tensors.
As part of ongoing refactoring, `tflite::GetInput`, `tflite::GetOutput`, `tflite::GetTemporary` and `tflite::GetIntermediates` will return `nullptr` in some cases. Hence, we insert the `nullptr` checks on all usages.

We also insert `nullptr` checks on usages of `tflite::GetVariableInput` and `tflite::GetOptionalInputTensor` but only in the cases where there is no obvious check that `nullptr` is acceptable (that is, we only insert the check for the output of these two functions if the tensor is accessed as if it is always not `nullptr`).

PiperOrigin-RevId: 332517854
Change-Id: Ic27221dd1f0fbe302f311c2fe5a846ed8ff02016
2020-09-18 13:53:51 -07:00
..
atrace_profiler_test.cc Force enabling TFLite tracing with TFLITE_ENABLE_DEFAULT_PROFILER define. 2020-08-31 16:19:06 -07:00
atrace_profiler.cc Force enabling TFLite tracing with TFLITE_ENABLE_DEFAULT_PROFILER define. 2020-08-31 16:19:06 -07:00
atrace_profiler.h Force enabling TFLite tracing with TFLITE_ENABLE_DEFAULT_PROFILER define. 2020-08-31 16:19:06 -07:00
buffered_profiler.h 1. Add a new event type for general tflite runtime instrumentation, and allow a Profiler to choose which event type it will record. 2020-05-28 06:17:22 -07:00
BUILD Enable ATrace profiler by Android system property. 2020-08-27 00:07:25 -07:00
memory_info_test.cc Enable ATrace profiler by Android system property. 2020-08-27 00:07:25 -07:00
memory_info.cc Skip displaying memory usage info when it's not supported on a platform to avoid confusion. 2020-04-08 01:06:48 -07:00
memory_info.h Skip displaying memory usage info when it's not supported on a platform to avoid confusion. 2020-04-08 01:06:48 -07:00
noop_profiler.h 1. Add a new event type for general tflite runtime instrumentation, and allow a Profiler to choose which event type it will record. 2020-05-28 06:17:22 -07:00
platform_profiler.cc Enable ATrace profiler by Android system property. 2020-08-27 00:07:25 -07:00
platform_profiler.h Enable ATrace profiler by Android system property. 2020-08-27 00:07:25 -07:00
profile_buffer_test.cc Enable ATrace profiler by Android system property. 2020-08-27 00:07:25 -07:00
profile_buffer.h 1. Add a new event type for general tflite runtime instrumentation, and allow a Profiler to choose which event type it will record. 2020-05-28 06:17:22 -07:00
profile_summarizer_test.cc [tflite]: Insert nullptr checks when obtaining tensors. 2020-09-18 13:53:51 -07:00
profile_summarizer.cc 1. Add a new event type for general tflite runtime instrumentation, and allow a Profiler to choose which event type it will record. 2020-05-28 06:17:22 -07:00
profile_summarizer.h Fix ProfilingListener for subclasses to override. 2020-02-20 21:26:56 -08:00
profile_summary_formatter_test.cc Enable ATrace profiler by Android system property. 2020-08-27 00:07:25 -07:00
profile_summary_formatter.cc Move the writer functions of profileSummarizer to ProfileSummaryFormatter. 2020-02-18 19:17:56 -08:00
profile_summary_formatter.h Move the writer functions of profileSummarizer to ProfileSummaryFormatter. 2020-02-18 19:17:56 -08:00
profiler_test.cc Enable ATrace profiler by Android system property. 2020-08-27 00:07:25 -07:00
profiler.h Use op_name as the tag when recording profiling events so that it's more specific than the original general "OpInvoke" tag. 2019-12-02 17:34:09 -08:00
test_main.cc Enable ATrace profiler by Android system property. 2020-08-27 00:07:25 -07:00
time_test.cc Enable ATrace profiler by Android system property. 2020-08-27 00:07:25 -07:00
time.cc
time.h