From 4d3298e21e5bc07bb71cf421d514034b23851bab Mon Sep 17 00:00:00 2001 From: Teresa Charlin Date: Thu, 28 Jul 2022 17:12:41 +0100 Subject: Bug Fix for refactor of the ExecuteNetwork for Strategy in MemCopyLayer * Correcting some typos Signed-off-by: Teresa Charlin Change-Id: Icb21dc4828e51afa38816bd454926fc41e9e82cb --- src/armnn/layers/MemCopyLayer.cpp | 3 +-- src/armnn/layers/MemImportLayer.cpp | 2 +- src/armnn/layers/PreCompiledLayer.cpp | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/armnn/layers/MemCopyLayer.cpp b/src/armnn/layers/MemCopyLayer.cpp index 3695117e92..0443c75675 100644 --- a/src/armnn/layers/MemCopyLayer.cpp +++ b/src/armnn/layers/MemCopyLayer.cpp @@ -51,8 +51,7 @@ void MemCopyLayer::ValidateTensorShapesFromInputs() void MemCopyLayer::ExecuteStrategy(IStrategy& strategy) const { - IgnoreUnused(strategy); - throw armnn::Exception("FakeQuantizationLayer should not appear in an input graph"); + strategy.ExecuteStrategy(this, GetParameters(), {}, GetName()); } } // namespace armnn diff --git a/src/armnn/layers/MemImportLayer.cpp b/src/armnn/layers/MemImportLayer.cpp index 182082b5e0..98b012901f 100644 --- a/src/armnn/layers/MemImportLayer.cpp +++ b/src/armnn/layers/MemImportLayer.cpp @@ -52,7 +52,7 @@ void MemImportLayer::ValidateTensorShapesFromInputs() void MemImportLayer::ExecuteStrategy(IStrategy& strategy) const { IgnoreUnused(strategy); - throw armnn::Exception("FakeQuantizationLayer should not appear in an input graph"); + throw armnn::Exception("MemImportLayer should not appear in an input graph"); } } // namespace armnn diff --git a/src/armnn/layers/PreCompiledLayer.cpp b/src/armnn/layers/PreCompiledLayer.cpp index 94c9afad2f..19b71e1285 100644 --- a/src/armnn/layers/PreCompiledLayer.cpp +++ b/src/armnn/layers/PreCompiledLayer.cpp @@ -52,7 +52,7 @@ void PreCompiledLayer::SetPreCompiledObject(PreCompiledObjectPtr preCompiledObje void PreCompiledLayer::ExecuteStrategy(IStrategy& strategy) const { IgnoreUnused(strategy); - throw armnn::Exception("FakeQuantizationLayer should not appear in an input graph"); + throw armnn::Exception("PreCompiledLayer should not appear in an input graph"); } } // namespace armnn -- cgit v1.2.1