diff options
author | Keith Davis <keith.davis@arm.com> | 2022-10-14 15:50:33 +0100 |
---|---|---|
committer | KeithARM <keith.davis@arm.com> | 2022-10-19 10:33:40 +0000 |
commit | 15f9c68adef324cd0158cea3d021c0f6bef5eecf (patch) | |
tree | 1cd48b345d182fd19efdc40a32e2540befd8f925 /src/armnn/layers/DebugLayer.cpp | |
parent | 7bbf56598010041ea46c3fa9d32604db777ee26e (diff) | |
download | armnn-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.cpp | 9 |
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); |