ArmNN
 24.02
FoldPadIntoDepthwiseConvolution2dImpl Class Reference

#include <FoldPadIntoLayer2d.hpp>

Public Member Functions

void Run (Graph &graph, InputSlot &connection) const
 

Protected Member Functions

 FoldPadIntoDepthwiseConvolution2dImpl ()=default
 
 ~FoldPadIntoDepthwiseConvolution2dImpl ()=default
 

Detailed Description

Definition at line 235 of file FoldPadIntoLayer2d.hpp.

Constructor & Destructor Documentation

◆ FoldPadIntoDepthwiseConvolution2dImpl()

◆ ~FoldPadIntoDepthwiseConvolution2dImpl()

Member Function Documentation

◆ Run()

void Run ( Graph graph,
InputSlot connection 
) const
inline

Definition at line 238 of file FoldPadIntoLayer2d.hpp.

239  {
240  const auto newConv2dLayer = FoldPadIntoLayer2dImpl<DepthwiseConvolution2dLayer>(graph, connection);
241 
242  if (newConv2dLayer != nullptr)
243  {
244  const auto conv2dLayer = PolymorphicDowncast<DepthwiseConvolution2dLayer*>(&connection.GetOwningLayer());
245  ARMNN_ASSERT_MSG(newConv2dLayer->GetInputSlot(1).GetConnection() != nullptr,
246  "FoldPadIntoDepthwiseConvolution2d: New convolution layer is missing "
247  "connection to weights layer");
248 
249  if (conv2dLayer->GetParameters().m_BiasEnabled)
250  {
251  ARMNN_ASSERT_MSG(newConv2dLayer->GetInputSlot(2).GetConnection() != nullptr,
252  "FoldPadIntoConvolution2d: New convolution layer is missing "
253  "connection to bias layer.");
254  }
255  }
256  }

References ARMNN_ASSERT_MSG, and InputSlot::GetOwningLayer().


The documentation for this class was generated from the following file:
ARMNN_ASSERT_MSG
#define ARMNN_ASSERT_MSG(COND, MSG)
Definition: Assert.hpp:15