aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/JsonPrinter.cpp
diff options
context:
space:
mode:
authorKeith Davis <keith.davis@arm.com>2021-11-03 11:02:29 +0000
committerTeresaARM <teresa.charlinreyes@arm.com>2021-11-03 16:33:28 +0000
commitde68d7d0c56ec309fe7cf6bd4b7e8aa407a4e985 (patch)
treed2b54949bb4a1dd33dc7ea0c1d1117bbfee75785 /src/armnn/JsonPrinter.cpp
parentfb6f8f5d0cece129fb957cc8d0f70ef6e5a0e4c1 (diff)
downloadarmnn-de68d7d0c56ec309fe7cf6bd4b7e8aa407a4e985.tar.gz
IVGCVSW-6517 Delegate Json output is invalid
Change-Id: Iee9720a9df6f2f0d8e00313e1972f3a3df33cb15 Signed-off-by: Keith Davis <keith.davis@arm.com>
Diffstat (limited to 'src/armnn/JsonPrinter.cpp')
-rw-r--r--src/armnn/JsonPrinter.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/armnn/JsonPrinter.cpp b/src/armnn/JsonPrinter.cpp
index 4be956b90b..f771cb1786 100644
--- a/src/armnn/JsonPrinter.cpp
+++ b/src/armnn/JsonPrinter.cpp
@@ -48,9 +48,8 @@ void JsonPrinter::PrintJsonChildObject(const JsonChildObject& object, size_t& id
// Add details opening
DecrementNumberOfTabs();
PrintTabs();
- m_OutputStream << std::quoted("Graph") << ":[{";
+ m_OutputStream << std::quoted("Graph") << ":[";
PrintNewLine();
- IncrementNumberOfTabs();
// Fill details body
for (std::string stringLine : object.m_LayerDetailsList)
@@ -61,9 +60,7 @@ void JsonPrinter::PrintJsonChildObject(const JsonChildObject& object, size_t& id
}
// Close out details
- DecrementNumberOfTabs();
PrintTabs();
-
object.IsDetailsOnlyEnabled() ? m_OutputStream << "]" : m_OutputStream << "],";
PrintNewLine();