#include <FoldPadIntoLayer2d.hpp>
Definition at line 208 of file FoldPadIntoLayer2d.hpp.
◆ FoldPadIntoDepthwiseConvolution2dImpl()
◆ ~FoldPadIntoDepthwiseConvolution2dImpl()
◆ Run()
Definition at line 211 of file FoldPadIntoLayer2d.hpp.
References ARMNN_ASSERT_MSG, and InputSlot::GetOwningLayer().
213 const auto newConv2dLayer = FoldPadIntoLayer2dImpl<DepthwiseConvolution2dLayer>(graph, connection);
215 if (newConv2dLayer !=
nullptr)
217 const auto conv2dLayer = PolymorphicDowncast<DepthwiseConvolution2dLayer*>(&connection.GetOwningLayer());
219 ARMNN_ASSERT_MSG(newConv2dLayer->GetInputSlot(1).GetConnection() !=
nullptr,
220 "FoldPadIntoDepthwiseConvolution2d: New convolution layer is missing connection to weights layer");
223 newConv2dLayer->m_Weight = std::move(conv2dLayer->m_Weight);
225 if (conv2dLayer->GetParameters().m_BiasEnabled)
227 ARMNN_ASSERT_MSG(newConv2dLayer->GetInputSlot(2).GetConnection() !=
nullptr,
228 "FoldPadIntoConvolution2d: New convolution layer is missing " 229 "connection to bias layer.");
231 newConv2dLayer->m_Bias = std::move(conv2dLayer->m_Bias);
#define ARMNN_ASSERT_MSG(COND, MSG)
The documentation for this class was generated from the following file: