diff options
author | Kevin May <kevin.may@arm.com> | 2022-10-05 14:42:55 +0100 |
---|---|---|
committer | Kevin May <kevin.may@arm.com> | 2022-10-11 10:53:06 +0000 |
commit | 251fd955c18434b7aa3f486374c4f1a15bbd160e (patch) | |
tree | c094dfe973f18ea16b3726b91767c3fcbf363dad /tests | |
parent | e497ed17463820eb33ca051254efd08c892325b5 (diff) | |
download | armnn-251fd955c18434b7aa3f486374c4f1a15bbd160e.tar.gz |
IVGCVSW-7222 Fix incorrect kernel measurements in profiling output
* Some CL kernels are not run after the first inference and this breaks
the profiler which is expecting a measurement for every kernel each run
* Add a function HasKernelMeasurements() to ascertain if the Event is
returning kernel measurements and if so insert 0.0 values for any missing
kernel measurements.
* Fix ExecuteNetwork to only print a json object after all inferences
have completed
Signed-off-by: Kevin May <kevin.may@arm.com>
Change-Id: I99f2bb0db847f5a52ab4c5705b072155c6b6f333
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ExecuteNetwork/ArmNNExecutor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ExecuteNetwork/ArmNNExecutor.cpp b/tests/ExecuteNetwork/ArmNNExecutor.cpp index b894db8049..b655ef8bc3 100644 --- a/tests/ExecuteNetwork/ArmNNExecutor.cpp +++ b/tests/ExecuteNetwork/ArmNNExecutor.cpp @@ -184,7 +184,7 @@ void ArmNNExecutor::ExecuteSync() const auto inferenceDuration = armnn::GetTimeDuration(start_time); // If profiling is enabled print out the results - if(profiler && profiler->IsProfilingEnabled()) + if(profiler && profiler->IsProfilingEnabled() && x == (m_Params.m_Iterations - 1)) { profiler->Print(std::cout); } |