aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTracy Narine <tracy.narine@arm.com>2024-02-14 10:01:29 +0000
committerNikhil Raj Arm <nikhil.raj@arm.com>2024-02-14 15:45:52 +0000
commit435267ff6a990e51d635ee964d3121ed610bc6dd (patch)
tree6c0205509f4b9f9263f3a41f0ccf47bbfbb73907
parentde4108ee09e79a24715e7878059b399220062411 (diff)
downloadarmnn-435267ff6a990e51d635ee964d3121ed610bc6dd.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);