Skip to content

Commit fc44c0e

Browse files
tracyn-armJohn-ARM
authored andcommitted
Minor adjustment to the commit for MLCE-1165
* Rewrote constexpr check to avoid a compile error Signed-off-by: Tracy Narine <[email protected]> Change-Id: I09a61314b1b4a5aa1e2baa52711f470802f04131
1 parent 41428e4 commit fc44c0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/armnn/optimizations/FoldPadIntoLayer2d.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Layer2dT* FoldPadIntoLayer2dImpl(Graph& graph, InputSlot& connection)
157157
// Workaround an issue in the compute library. The conv2d algorithm that the
158158
// compute library is choosing is not handling the 1x1 filter case when
159159
// the padding size >= filter size
160-
if constexpr (std::is_same<Layer2dT, armnn::Convolution2dLayer>::value)
160+
if (layer2d.GetType() == armnn::LayerType::Convolution2d)
161161
{
162162
// Get filter width and height
163163
armnnUtils::DataLayoutIndexed dataLayoutIndex(newLayer2dDescriptor.m_DataLayout);

0 commit comments

Comments
 (0)