aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/layers/DebugLayer.cpp
diff options
context:
space:
mode:
authorKeith Davis <keith.davis@arm.com>2022-10-14 15:50:33 +0100
committerKeithARM <keith.davis@arm.com>2022-10-19 10:33:40 +0000
commit15f9c68adef324cd0158cea3d021c0f6bef5eecf (patch)
tree1cd48b345d182fd19efdc40a32e2540befd8f925 /src/armnn/layers/DebugLayer.cpp
parent7bbf56598010041ea46c3fa9d32604db777ee26e (diff)
downloadarmnn-15f9c68adef324cd0158cea3d021c0f6bef5eecf.tar.gz
MLCE-545 INT8 TFLite model execution abnormal
* Add functionality to print output tensors to file in tempdir * UnitTests Signed-off-by: Keith Davis <keith.davis@arm.com> Change-Id: Idfb4c186544187db1fecdfca11c662540f645439
Diffstat (limited to 'src/armnn/layers/DebugLayer.cpp')
-rw-r--r--src/armnn/layers/DebugLayer.cpp9
1 files changed, 8 insertions, 1 deletions
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<IWorkload> DebugLayer::CreateWorkload(const IWorkloadFactory& factory) const
@@ -24,6 +30,7 @@ std::unique_ptr<IWorkload> 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);