diff options
author | Keith Davis <keith.davis@arm.com> | 2021-08-04 10:35:20 +0100 |
---|---|---|
committer | KeithARM <keith.davis@arm.com> | 2021-08-05 08:11:06 +0000 |
commit | 5a64f22101ecdda4846e9d71428633f3ccd56fb2 (patch) | |
tree | 5d5dcb617bf2c2786b37a7c64bb6c54ca5696914 /src/armnn/JsonPrinter.cpp | |
parent | 8c999dfeeca7b02a6ea1d0cdcd8c34472f6c9cce (diff) | |
download | armnn-5a64f22101ecdda4846e9d71428633f3ccd56fb2.tar.gz |
IVGCVSW-5980 Add Descriptor, TensorInfo and Convolution algorithm to JSON
* Add GUID as field to layer details and profiling events
* Add Optional GUID param to existing tests
* Improve Details macro to be inline function
* Fix some formatting
Signed-off-by: Keith Davis <keith.davis@arm.com>
Change-Id: I66f192a90a7642b3ee8e7dda0d3f428cce002581
Diffstat (limited to 'src/armnn/JsonPrinter.cpp')
-rw-r--r-- | src/armnn/JsonPrinter.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/armnn/JsonPrinter.cpp b/src/armnn/JsonPrinter.cpp index 986edb9e6d..b5612ebe02 100644 --- a/src/armnn/JsonPrinter.cpp +++ b/src/armnn/JsonPrinter.cpp @@ -24,6 +24,10 @@ void JsonPrinter::PrintJsonChildObject(const JsonChildObject& object, size_t& id if (object.GetType() != JsonObjectType::ExecObjectDesc) { PrintLabel(object.m_Label, id); + if (object.m_Guid.has_value()) + { + PrintGuid(object.m_Guid.value()); + } PrintType(object.m_Type); } @@ -120,6 +124,11 @@ void JsonPrinter::PrintType(armnn::JsonObjectType type) m_OutputStream << R"(")"; } +void JsonPrinter::PrintGuid(armnn::profiling::ProfilingGuid guid) +{ + PrintTabs(); + m_OutputStream << std::quoted("GUID") << ": " << std::quoted(std::to_string(guid)) << std::endl; +} void JsonPrinter::PrintMeasurementsList(const std::vector<double>& measurementsVector) { |