diff options
author | Jan Eilers <jan.eilers@arm.com> | 2021-12-08 16:15:12 +0000 |
---|---|---|
committer | Jan Eilers <jan.eilers@arm.com> | 2021-12-08 16:15:12 +0000 |
commit | 17d34da9efab1e515b29755811b7ad7597aacb79 (patch) | |
tree | 7c5db433ad7eab8c82f58a452a879e4940735986 /tests | |
parent | 6a71bb538dd67a38b321b5f2066784afd26e8c22 (diff) | |
download | armnn-17d34da9efab1e515b29755811b7ad7597aacb79.tar.gz |
Add addition timing logging output
* Adds ExecuteNetwork when building the delegate only
* Adds timings to delegate subgraph creation
* Adds executions times
Signed-off-by: Jan Eilers <jan.eilers@arm.com>
Change-Id: Ieff2f67ea8dbb6c2a708f8810e84a20485b7a631
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 6 | ||||
-rw-r--r-- | tests/ExecuteNetwork/ExecuteNetwork.cpp | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index cea55c5b8e..4cb324f2c7 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -133,7 +133,11 @@ if (BUILD_ONNX_PARSER) OnnxParserTest(OnnxMobileNet-Armnn "${OnnxMobileNet-Armnn_sources}") endif() -if (BUILD_ARMNN_SERIALIZER OR BUILD_TF_PARSER OR BUILD_TF_LITE_PARSER OR BUILD_ONNX_PARSER) +if (BUILD_ARMNN_SERIALIZER + OR BUILD_TF_PARSER + OR BUILD_TF_LITE_PARSER + OR BUILD_ONNX_PARSER + OR BUILD_ARMNN_TFLITE_DELEGATE) set(ExecuteNetwork_sources ExecuteNetwork/ExecuteNetwork.cpp ExecuteNetwork/ExecuteNetworkProgramOptions.cpp diff --git a/tests/ExecuteNetwork/ExecuteNetwork.cpp b/tests/ExecuteNetwork/ExecuteNetwork.cpp index b0f98b27b9..540bfd4271 100644 --- a/tests/ExecuteNetwork/ExecuteNetwork.cpp +++ b/tests/ExecuteNetwork/ExecuteNetwork.cpp @@ -47,7 +47,7 @@ bool CheckInferenceTimeThreshold(const std::chrono::duration<double, std::milli>& duration, const double& thresholdTime) { - ARMNN_LOG(info) << "\nInference time: " << std::setprecision(2) + ARMNN_LOG(info) << "Inference time: " << std::setprecision(2) << std::fixed << duration.count() << " ms\n"; // If thresholdTime == 0.0 (default), then it hasn't been supplied at command line if (thresholdTime != 0.0) |