From 15f9c68adef324cd0158cea3d021c0f6bef5eecf Mon Sep 17 00:00:00 2001 From: Keith Davis Date: Fri, 14 Oct 2022 15:50:33 +0100 Subject: MLCE-545 INT8 TFLite model execution abnormal * Add functionality to print output tensors to file in tempdir * UnitTests Signed-off-by: Keith Davis Change-Id: Idfb4c186544187db1fecdfca11c662540f645439 --- src/armnn/layers/DebugLayer.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/armnn/layers/DebugLayer.cpp') diff --git a/src/armnn/layers/DebugLayer.cpp b/src/armnn/layers/DebugLayer.cpp index 8342c530b2..e1c8572c95 100644 --- a/src/armnn/layers/DebugLayer.cpp +++ b/src/armnn/layers/DebugLayer.cpp @@ -13,7 +13,13 @@ namespace armnn { DebugLayer::DebugLayer(const char* name) - : Layer(1, 1, LayerType::Debug, name) + : Layer(1, 1, LayerType::Debug, name), + m_ToFile(false) +{} + +DebugLayer::DebugLayer(const char* name, bool toFile) + : Layer(1, 1, LayerType::Debug, name), + m_ToFile(toFile) {} std::unique_ptr DebugLayer::CreateWorkload(const IWorkloadFactory& factory) const @@ -24,6 +30,7 @@ std::unique_ptr DebugLayer::CreateWorkload(const IWorkloadFactory& fa descriptor.m_Guid = prevLayer.GetGuid(); descriptor.m_LayerName = prevLayer.GetNameStr(); descriptor.m_SlotIndex = GetInputSlot(0).GetConnectedOutputSlot()->CalculateIndexOnOwner(); + descriptor.m_LayerOutputToFile = m_ToFile; SetAdditionalInfo(descriptor); -- cgit v1.2.1