From fc44c0e1a554a46fb5a57460f069607197f29fde Mon Sep 17 00:00:00 2001 From: Tracy Narine Date: Wed, 14 Feb 2024 10:01:29 +0000 Subject: Minor adjustment to the commit for MLCE-1165 * Rewrote constexpr check to avoid a compile error Signed-off-by: Tracy Narine Change-Id: I09a61314b1b4a5aa1e2baa52711f470802f04131 --- src/armnn/optimizations/FoldPadIntoLayer2d.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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::value) + if (layer2d.GetType() == armnn::LayerType::Convolution2d) { // Get filter width and height armnnUtils::DataLayoutIndexed dataLayoutIndex(newLayer2dDescriptor.m_DataLayout); -- cgit v1.2.1