ArmNN
 25.02
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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  {}
bool m_HalfPixelCenters
Half Pixel Centers.
uint32_t m_TargetHeight
Target height value.
DataLayout m_DataLayout
The data layout to be used (NCHW, NHWC).
ResizeMethod m_Method
The Interpolation method to use (Bilinear, NearestNeighbor).
uint32_t m_TargetWidth
Target width value.
bool m_AlignCorners
Aligned corners.

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(), ResizeDescriptor::operator==(), and StringifyLayerParameters< ResizeDescriptor >::Serialize().

◆ m_TargetHeight

◆ m_TargetWidth


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