aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTracy Narine <tracy.narine@arm.com>2024-02-14 10:01:29 +0000
committerJohn Mcloughlin <john.mcloughlin@arm.com>2024-02-14 15:50:09 +0000
commitfc44c0e1a554a46fb5a57460f069607197f29fde (patch)
treec697324213ee296c4e774dfb052293a5406213c3
parent41428e429d842086951535f6c6d942f503fb9030 (diff)
downloadarmnn-fc44c0e1a554a46fb5a57460f069607197f29fde.tar.gz
Minor adjustment to the commit for MLCE-1165
* Rewrote constexpr check to avoid a compile error Signed-off-by: Tracy Narine <tracy.narine@arm.com> Change-Id: I09a61314b1b4a5aa1e2baa52711f470802f04131
-rw-r--r--src/armnn/optimizations/FoldPadIntoLayer2d.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/armnn/optimizations/FoldPadIntoLayer2d.hpp b/src/armnn/optimizations/FoldPadIntoLayer2d.hpp
index 5592491653..e88e4980db 100644
--- a/src/armnn/optimizations/FoldPadIntoLayer2d.hpp
+++ b/src/armnn/optimizations/FoldPadIntoLayer2d.hpp
@@ -157,7 +157,7 @@ Layer2dT* FoldPadIntoLayer2dImpl(Graph& graph, InputSlot& connection)
// Workaround an issue in the compute library. The conv2d algorithm that the
// compute library is choosing is not handling the 1x1 filter case when
// the padding size >= filter size
- if constexpr (std::is_same<Layer2dT, armnn::Convolution2dLayer>::value)
+ if (layer2d.GetType() == armnn::LayerType::Convolution2d)
{
// Get filter width and height
armnnUtils::DataLayoutIndexed dataLayoutIndex(newLayer2dDescriptor.m_DataLayout);