ArmNN
 23.05
Convolution2dDescriptor Struct Reference

A Convolution2dDescriptor for the Convolution2dLayer. More...

#include <Descriptors.hpp>

Inheritance diagram for Convolution2dDescriptor:
BaseDescriptor

Public Member Functions

 Convolution2dDescriptor ()
 
bool operator== (const Convolution2dDescriptor &rhs) const
 
uint32_t GetNumInputs () const
 
- 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. More...
 
uint32_t m_PadRight
 Padding right value in the width dimension. More...
 
uint32_t m_PadTop
 Padding top value in the height dimension. More...
 
uint32_t m_PadBottom
 Padding bottom value in the height dimension. More...
 
uint32_t m_StrideX
 Stride value when proceeding through input for the width dimension. More...
 
uint32_t m_StrideY
 Stride value when proceeding through input for the height dimension. More...
 
uint32_t m_DilationX
 Dilation along x axis. More...
 
uint32_t m_DilationY
 Dilation along y axis. More...
 
bool m_BiasEnabled
 Enable/disable bias. More...
 
DataLayout m_DataLayout
 The data layout to be used (NCHW, NHWC). More...
 

Detailed Description

A Convolution2dDescriptor for the Convolution2dLayer.

Definition at line 522 of file Descriptors.hpp.

Constructor & Destructor Documentation

◆ Convolution2dDescriptor()

Definition at line 524 of file Descriptors.hpp.

525  : m_PadLeft(0)
526  , m_PadRight(0)
527  , m_PadTop(0)
528  , m_PadBottom(0)
529  , m_StrideX(1)
530  , m_StrideY(1)
531  , m_DilationX(1)
532  , m_DilationY(1)
533  , m_BiasEnabled(false)
535  {}

References armnn::NCHW.

Member Function Documentation

◆ GetNumInputs()

uint32_t GetNumInputs ( ) const

◆ operator==()

bool operator== ( const Convolution2dDescriptor rhs) const
inline

Definition at line 537 of file Descriptors.hpp.

538  {
539  return m_PadLeft == rhs.m_PadLeft &&
540  m_PadRight == rhs.m_PadRight &&
541  m_PadTop == rhs.m_PadTop &&
542  m_PadBottom == rhs.m_PadBottom &&
543  m_StrideX == rhs.m_StrideX &&
544  m_StrideY == rhs.m_StrideY &&
545  m_DilationX == rhs.m_DilationX &&
546  m_DilationY == rhs.m_DilationY &&
547  m_BiasEnabled == rhs.m_BiasEnabled &&
548  m_DataLayout == rhs.m_DataLayout;
549  }

References Convolution2dDescriptor::m_BiasEnabled, Convolution2dDescriptor::m_DataLayout, Convolution2dDescriptor::m_DilationX, Convolution2dDescriptor::m_DilationY, Convolution2dDescriptor::m_PadBottom, Convolution2dDescriptor::m_PadLeft, Convolution2dDescriptor::m_PadRight, Convolution2dDescriptor::m_PadTop, Convolution2dDescriptor::m_StrideX, and Convolution2dDescriptor::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

◆ m_StrideY

uint32_t m_StrideY

The documentation for this struct was generated from the following files:
armnn::Convolution2dDescriptor::m_DataLayout
DataLayout m_DataLayout
The data layout to be used (NCHW, NHWC).
Definition: Descriptors.hpp:572
armnn::Convolution2dDescriptor::m_BiasEnabled
bool m_BiasEnabled
Enable/disable bias.
Definition: Descriptors.hpp:570
armnn::Convolution2dDescriptor::m_DilationY
uint32_t m_DilationY
Dilation along y axis.
Definition: Descriptors.hpp:568
armnn::Convolution2dDescriptor::m_PadBottom
uint32_t m_PadBottom
Padding bottom value in the height dimension.
Definition: Descriptors.hpp:560
armnn::Convolution2dDescriptor::m_DilationX
uint32_t m_DilationX
Dilation along x axis.
Definition: Descriptors.hpp:566
armnn::Convolution2dDescriptor::m_PadTop
uint32_t m_PadTop
Padding top value in the height dimension.
Definition: Descriptors.hpp:558
armnn::Convolution2dDescriptor::m_PadRight
uint32_t m_PadRight
Padding right value in the width dimension.
Definition: Descriptors.hpp:556
armnn::GetNumInputs
uint32_t GetNumInputs(bool biasEnabled)
Definition: Descriptors.cpp:428
armnn::DataLayout::NCHW
@ NCHW
armnn::Convolution2dDescriptor::m_PadLeft
uint32_t m_PadLeft
Padding left value in the width dimension.
Definition: Descriptors.hpp:554
armnn::Convolution2dDescriptor::m_StrideX
uint32_t m_StrideX
Stride value when proceeding through input for the width dimension.
Definition: Descriptors.hpp:562
armnn::Convolution2dDescriptor::m_StrideY
uint32_t m_StrideY
Stride value when proceeding through input for the height dimension.
Definition: Descriptors.hpp:564