ArmNN
 23.08
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 212 of file FoldPadIntoLayer2d.hpp.

Constructor & Destructor Documentation

◆ FoldPadIntoDepthwiseConvolution2dImpl()

◆ ~FoldPadIntoDepthwiseConvolution2dImpl()

Member Function Documentation

◆ Run()

void Run ( Graph graph,
InputSlot connection 
) const
inline

Definition at line 215 of file FoldPadIntoLayer2d.hpp.

216  {
217  const auto newConv2dLayer = FoldPadIntoLayer2dImpl<DepthwiseConvolution2dLayer>(graph, connection);
218 
219  if (newConv2dLayer != nullptr)
220  {
221  const auto conv2dLayer = PolymorphicDowncast<DepthwiseConvolution2dLayer*>(&connection.GetOwningLayer());
222  ARMNN_ASSERT_MSG(newConv2dLayer->GetInputSlot(1).GetConnection() != nullptr,
223  "FoldPadIntoDepthwiseConvolution2d: New convolution layer is missing "
224  "connection to weights layer");
225 
226  if (conv2dLayer->GetParameters().m_BiasEnabled)
227  {
228  ARMNN_ASSERT_MSG(newConv2dLayer->GetInputSlot(2).GetConnection() != nullptr,
229  "FoldPadIntoConvolution2d: New convolution layer is missing "
230  "connection to bias layer.");
231  }
232  }
233  }

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