diff options
Diffstat (limited to 'src/armnn/layers')
-rw-r--r-- | src/armnn/layers/DebugLayer.cpp | 9 | ||||
-rw-r--r-- | src/armnn/layers/DebugLayer.hpp | 4 |
2 files changed, 12 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); diff --git a/src/armnn/layers/DebugLayer.hpp b/src/armnn/layers/DebugLayer.hpp index fe7ad5c9e5..662195d7bc 100644 --- a/src/armnn/layers/DebugLayer.hpp +++ b/src/armnn/layers/DebugLayer.hpp @@ -34,9 +34,13 @@ protected: /// Constructor to create a DebugLayer. /// @param [in] name Optional name for the layer. DebugLayer(const char* name); + DebugLayer(const char* name, bool toFile); /// Default destructor ~DebugLayer() = default; + +private: + bool m_ToFile; }; } // namespace armnn |