ArmNN
 24.08
ResizeDescriptor Struct Reference

A ResizeDescriptor for the ResizeLayer. More...

#include <Descriptors.hpp>

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

Public Member Functions

 ResizeDescriptor ()
 
bool operator== (const ResizeDescriptor &rhs) const
 
- Public Member Functions inherited from BaseDescriptor
virtual bool IsNull () const
 
virtual ~BaseDescriptor ()=default
 

Public Attributes

uint32_t m_TargetWidth
 Target width value. More...
 
uint32_t m_TargetHeight
 Target height value. More...
 
ResizeMethod m_Method
 The Interpolation method to use (Bilinear, NearestNeighbor). More...
 
DataLayout m_DataLayout
 The data layout to be used (NCHW, NHWC). More...
 
bool m_AlignCorners
 Aligned corners. More...
 
bool m_HalfPixelCenters
 Half Pixel Centers. More...
 

Detailed Description

A ResizeDescriptor for the ResizeLayer.

Definition at line 985 of file Descriptors.hpp.

Constructor & Destructor Documentation

◆ ResizeDescriptor()

ResizeDescriptor ( )
inline

Definition at line 987 of file Descriptors.hpp.

988  : m_TargetWidth(0)
989  , m_TargetHeight(0)
992  , m_AlignCorners(false)
993  , m_HalfPixelCenters(false)
994  {}

References armnn::NCHW, and armnn::NearestNeighbor.

Member Function Documentation

◆ operator==()

bool operator== ( const ResizeDescriptor rhs) const
inline

Definition at line 996 of file Descriptors.hpp.

997  {
998  return m_TargetWidth == rhs.m_TargetWidth &&
999  m_TargetHeight == rhs.m_TargetHeight &&
1000  m_Method == rhs.m_Method &&
1001  m_DataLayout == rhs.m_DataLayout &&
1002  m_AlignCorners == rhs.m_AlignCorners &&
1003  m_HalfPixelCenters == rhs.m_HalfPixelCenters;
1004  }

References ResizeDescriptor::m_AlignCorners, ResizeDescriptor::m_DataLayout, ResizeDescriptor::m_HalfPixelCenters, ResizeDescriptor::m_Method, ResizeDescriptor::m_TargetHeight, and ResizeDescriptor::m_TargetWidth.

Member Data Documentation

◆ m_AlignCorners

◆ m_DataLayout

◆ m_HalfPixelCenters

◆ m_Method

ResizeMethod m_Method

The Interpolation method to use (Bilinear, NearestNeighbor).

Definition at line 1012 of file Descriptors.hpp.

Referenced by ConvertResizeToTosaOperator(), CreateResizeAttributes(), ResizeDescriptor::operator==(), and StringifyLayerParameters< ResizeDescriptor >::Serialize().

◆ m_TargetHeight

◆ m_TargetWidth


The documentation for this struct was generated from the following file:
armnn::ResizeDescriptor::m_HalfPixelCenters
bool m_HalfPixelCenters
Half Pixel Centers.
Definition: Descriptors.hpp:1018
armnn::ResizeDescriptor::m_TargetHeight
uint32_t m_TargetHeight
Target height value.
Definition: Descriptors.hpp:1009
armnn::ResizeDescriptor::m_DataLayout
DataLayout m_DataLayout
The data layout to be used (NCHW, NHWC).
Definition: Descriptors.hpp:1014
armnn::ResizeDescriptor::m_Method
ResizeMethod m_Method
The Interpolation method to use (Bilinear, NearestNeighbor).
Definition: Descriptors.hpp:1012
armnn::ResizeMethod::NearestNeighbor
@ NearestNeighbor
armnn::ResizeDescriptor::m_TargetWidth
uint32_t m_TargetWidth
Target width value.
Definition: Descriptors.hpp:1007
armnn::ResizeDescriptor::m_AlignCorners
bool m_AlignCorners
Aligned corners.
Definition: Descriptors.hpp:1016
armnn::DataLayout::NCHW
@ NCHW