ArmNN
 25.11
Loading...
Searching...
No Matches
DepthwiseConvolution2dDescriptor Struct Reference

A DepthwiseConvolution2dDescriptor for the DepthwiseConvolution2dLayer. More...

#include <Descriptors.hpp>

Inheritance diagram for DepthwiseConvolution2dDescriptor:
[legend]
Collaboration diagram for DepthwiseConvolution2dDescriptor:
[legend]

Public Member Functions

 DepthwiseConvolution2dDescriptor ()
bool operator== (const DepthwiseConvolution2dDescriptor &rhs) const
uint32_t GetNumInputs () const
 Get the number of views/inputs.
Public Member Functions inherited from BaseDescriptor
virtual bool IsNull () const
virtual ~BaseDescriptor ()=default

Public Attributes

uint32_t m_PadLeft
 Padding left value in the width dimension.
uint32_t m_PadRight
 Padding right value in the width dimension.
uint32_t m_PadTop
 Padding top value in the height dimension.
uint32_t m_PadBottom
 Padding bottom value in the height dimension.
uint32_t m_StrideX
 Stride value when proceeding through input for the width dimension.
uint32_t m_StrideY
 Stride value when proceeding through input for the height dimension.
uint32_t m_DilationX
 Dilation factor value for width dimension.
uint32_t m_DilationY
 Dilation factor value for height dimension.
bool m_BiasEnabled
 Enable/disable bias.
DataLayout m_DataLayout
 The data layout to be used (NCHW, NHWC).

Detailed Description

Constructor & Destructor Documentation

◆ DepthwiseConvolution2dDescriptor()

Definition at line 661 of file Descriptors.hpp.

662 : m_PadLeft(0)
663 , m_PadRight(0)
664 , m_PadTop(0)
665 , m_PadBottom(0)
666 , m_StrideX(1)
667 , m_StrideY(1)
668 , m_DilationX(1)
669 , m_DilationY(1)
670 , m_BiasEnabled(false)
671 , m_DataLayout(DataLayout::NCHW)
672 {}

References m_BiasEnabled, m_DataLayout, m_DilationX, m_DilationY, m_PadBottom, m_PadLeft, m_PadRight, m_PadTop, m_StrideX, m_StrideY, and armnn::NCHW.

Referenced by operator==().

Member Function Documentation

◆ GetNumInputs()

uint32_t GetNumInputs ( ) const

Get the number of views/inputs.

Definition at line 480 of file Descriptors.cpp.

481{
482 return armnn::GetNumInputs(m_BiasEnabled);
483}
uint32_t GetNumInputs(bool biasEnabled)

References armnn::GetNumInputs(), and m_BiasEnabled.

Referenced by ClDepthwiseConvolutionWorkload::ClDepthwiseConvolutionWorkload().

◆ operator==()

bool operator== ( const DepthwiseConvolution2dDescriptor & rhs) const
inline

Definition at line 674 of file Descriptors.hpp.

675 {
676 return m_PadLeft == rhs.m_PadLeft &&
677 m_PadRight == rhs.m_PadRight &&
678 m_PadTop == rhs.m_PadTop &&
679 m_PadBottom == rhs.m_PadBottom &&
680 m_StrideX == rhs.m_StrideX &&
681 m_StrideY == rhs.m_StrideY &&
682 m_DilationX == rhs.m_DilationX &&
683 m_DilationY == rhs.m_DilationY &&
684 m_BiasEnabled == rhs.m_BiasEnabled &&
685 m_DataLayout == rhs.m_DataLayout;
686 }

References DepthwiseConvolution2dDescriptor(), m_BiasEnabled, m_DataLayout, m_DilationX, m_DilationY, m_PadBottom, m_PadLeft, m_PadRight, m_PadTop, m_StrideX, and m_StrideY.

Member Data Documentation

◆ m_BiasEnabled

◆ m_DataLayout

◆ m_DilationX

◆ m_DilationY

◆ m_PadBottom

uint32_t m_PadBottom

◆ m_PadLeft

uint32_t m_PadLeft

◆ m_PadRight

uint32_t m_PadRight

◆ m_PadTop

uint32_t m_PadTop

◆ m_StrideX

uint32_t m_StrideX

Stride value when proceeding through input for the width dimension.

Definition at line 700 of file Descriptors.hpp.

Referenced by ConvertDepthwiseConv2dToTosaOperator(), DepthwiseConvolution2dDescriptor(), operator==(), and StringifyLayerParameters< DepthwiseConvolution2dDescriptor >::Serialize().

◆ m_StrideY

uint32_t m_StrideY

Stride value when proceeding through input for the height dimension.

Definition at line 702 of file Descriptors.hpp.

Referenced by ConvertDepthwiseConv2dToTosaOperator(), DepthwiseConvolution2dDescriptor(), operator==(), and StringifyLayerParameters< DepthwiseConvolution2dDescriptor >::Serialize().


The documentation for this struct was generated from the following files: