ArmNN
 24.08
InstanceNormalizationDescriptor Struct Reference

An InstanceNormalizationDescriptor for InstanceNormalizationLayer. More...

#include <Descriptors.hpp>

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

Public Member Functions

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

Public Attributes

float m_Gamma
 Gamma, the scale scalar value applied for the normalized tensor. Defaults to 1.0. More...
 
float m_Beta
 Beta, the offset scalar value applied for the normalized tensor. Defaults to 1.0. More...
 
float m_Eps
 Epsilon, small scalar value added to variance to avoid dividing by zero. Defaults to 1e-12f. More...
 
DataLayout m_DataLayout
 The data layout to be used (NCHW, NHWC). More...
 

Detailed Description

Constructor & Destructor Documentation

◆ InstanceNormalizationDescriptor()

Definition at line 849 of file Descriptors.hpp.

850  : m_Gamma(1.0f)
851  , m_Beta(0.0f)
852  , m_Eps(1e-12f)
854  {}

References armnn::NCHW.

Member Function Documentation

◆ operator==()

bool operator== ( const InstanceNormalizationDescriptor rhs) const
inline

Definition at line 856 of file Descriptors.hpp.

857  {
858  return m_Gamma == rhs.m_Gamma &&
859  m_Beta == rhs.m_Beta &&
860  m_Eps == rhs.m_Eps &&
861  m_DataLayout == rhs.m_DataLayout;
862  }

References InstanceNormalizationDescriptor::m_Beta, InstanceNormalizationDescriptor::m_DataLayout, InstanceNormalizationDescriptor::m_Eps, and InstanceNormalizationDescriptor::m_Gamma.

Member Data Documentation

◆ m_Beta

float m_Beta

Beta, the offset scalar value applied for the normalized tensor. Defaults to 1.0.

Definition at line 867 of file Descriptors.hpp.

Referenced by armnn::InstanceNorm(), and InstanceNormalizationDescriptor::operator==().

◆ m_DataLayout

DataLayout m_DataLayout

The data layout to be used (NCHW, NHWC).

Definition at line 871 of file Descriptors.hpp.

Referenced by armnn::InstanceNorm(), and InstanceNormalizationDescriptor::operator==().

◆ m_Eps

float m_Eps

Epsilon, small scalar value added to variance to avoid dividing by zero. Defaults to 1e-12f.

Definition at line 869 of file Descriptors.hpp.

Referenced by armnn::InstanceNorm(), and InstanceNormalizationDescriptor::operator==().

◆ m_Gamma

float m_Gamma

Gamma, the scale scalar value applied for the normalized tensor. Defaults to 1.0.

Definition at line 865 of file Descriptors.hpp.

Referenced by armnn::InstanceNorm(), and InstanceNormalizationDescriptor::operator==().


The documentation for this struct was generated from the following file:
armnn::InstanceNormalizationDescriptor::m_Beta
float m_Beta
Beta, the offset scalar value applied for the normalized tensor. Defaults to 1.0.
Definition: Descriptors.hpp:867
armnn::InstanceNormalizationDescriptor::m_Gamma
float m_Gamma
Gamma, the scale scalar value applied for the normalized tensor. Defaults to 1.0.
Definition: Descriptors.hpp:865
armnn::InstanceNormalizationDescriptor::m_DataLayout
DataLayout m_DataLayout
The data layout to be used (NCHW, NHWC).
Definition: Descriptors.hpp:871
armnn::InstanceNormalizationDescriptor::m_Eps
float m_Eps
Epsilon, small scalar value added to variance to avoid dividing by zero. Defaults to 1e-12f.
Definition: Descriptors.hpp:869
armnn::DataLayout::NCHW
@ NCHW