diff options
Diffstat (limited to 'src/armnn/layers/DebugLayer.cpp')
-rw-r--r-- | src/armnn/layers/DebugLayer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/armnn/layers/DebugLayer.cpp b/src/armnn/layers/DebugLayer.cpp index e83b17ee64..6fccca677f 100644 --- a/src/armnn/layers/DebugLayer.cpp +++ b/src/armnn/layers/DebugLayer.cpp @@ -46,4 +46,10 @@ void DebugLayer::ValidateTensorShapesFromInputs() inferredShapes[0]); } +void DebugLayer::Accept(ILayerVisitor& visitor) const +{ + // by design debug layers are never in input graphs + throw armnn::Exception("DebugLayer should never appear in an input graph"); +} + } // namespace armnn |