ArmNN
 22.05.01
InstanceNormalizationDescriptor Struct Reference

An InstanceNormalizationDescriptor for InstanceNormalizationLayer. More...

#include <Descriptors.hpp>

Inheritance diagram for InstanceNormalizationDescriptor:
BaseDescriptor

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 814 of file Descriptors.hpp.

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

Member Function Documentation

◆ operator==()

bool operator== ( const InstanceNormalizationDescriptor rhs) const
inline

Definition at line 821 of file Descriptors.hpp.

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

822  {
823  return m_Gamma == rhs.m_Gamma &&
824  m_Beta == rhs.m_Beta &&
825  m_Eps == rhs.m_Eps &&
826  m_DataLayout == rhs.m_DataLayout;
827  }
float m_Gamma
Gamma, the scale scalar value applied for the normalized tensor. Defaults to 1.0. ...
float m_Eps
Epsilon, small scalar value added to variance to avoid dividing by zero. Defaults to 1e-12f...
DataLayout m_DataLayout
The data layout to be used (NCHW, NHWC).
float m_Beta
Beta, the offset scalar value applied for the normalized tensor. Defaults to 1.0. ...

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 832 of file Descriptors.hpp.

Referenced by armnnSerializer::GetFlatBufferArgMinMaxFunction(), IDeserializer::DeserializerImpl::GetNetworkOutputBindingInfo(), armnn::InstanceNorm(), and InstanceNormalizationDescriptor::operator==().

◆ m_DataLayout

◆ m_Eps

float m_Eps

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

Definition at line 834 of file Descriptors.hpp.

Referenced by armnnSerializer::GetFlatBufferArgMinMaxFunction(), IDeserializer::DeserializerImpl::GetNetworkOutputBindingInfo(), 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 830 of file Descriptors.hpp.

Referenced by armnnSerializer::GetFlatBufferArgMinMaxFunction(), IDeserializer::DeserializerImpl::GetNetworkOutputBindingInfo(), armnn::InstanceNorm(), InstanceNormalizationDescriptor::operator==(), and TEST_SUITE().


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