ArmNN
 21.02
ActivationDescriptor Struct Reference

An ActivationDescriptor for the ActivationLayer. More...

#include <Descriptors.hpp>

Inheritance diagram for ActivationDescriptor:
BaseDescriptor

Public Member Functions

 ActivationDescriptor ()
 
 ActivationDescriptor (armnn::ActivationFunction activation, float a=0, float b=0)
 
bool operator== (const ActivationDescriptor &rhs) const
 

Public Attributes

ActivationFunction m_Function
 The activation function to use (Sigmoid, TanH, Linear, ReLu, BoundedReLu, SoftReLu, LeakyReLu, Abs, Sqrt, Square, Elu). More...
 
float m_A
 Alpha upper bound value used by the activation functions. (BoundedReLu, Linear, TanH, Elu). More...
 
float m_B
 Beta lower bound value used by the activation functions. (BoundedReLu, Linear, TanH). More...
 

Detailed Description

An ActivationDescriptor for the ActivationLayer.

Definition at line 25 of file Descriptors.hpp.

Constructor & Destructor Documentation

◆ ActivationDescriptor() [1/2]

Definition at line 27 of file Descriptors.hpp.

29  , m_A(0)
30  , m_B(0)
31  {}
float m_A
Alpha upper bound value used by the activation functions. (BoundedReLu, Linear, TanH, Elu).
Definition: Descriptors.hpp:50
float m_B
Beta lower bound value used by the activation functions. (BoundedReLu, Linear, TanH).
Definition: Descriptors.hpp:52
ActivationFunction m_Function
The activation function to use (Sigmoid, TanH, Linear, ReLu, BoundedReLu, SoftReLu, LeakyReLu, Abs, Sqrt, Square, Elu).
Definition: Descriptors.hpp:48

◆ ActivationDescriptor() [2/2]

ActivationDescriptor ( armnn::ActivationFunction  activation,
float  a = 0,
float  b = 0 
)
inline

Definition at line 33 of file Descriptors.hpp.

36  : m_Function(activation)
37  , m_A(a)
38  , m_B(b)
39  {}
float m_A
Alpha upper bound value used by the activation functions. (BoundedReLu, Linear, TanH, Elu).
Definition: Descriptors.hpp:50
float m_B
Beta lower bound value used by the activation functions. (BoundedReLu, Linear, TanH).
Definition: Descriptors.hpp:52
ActivationFunction m_Function
The activation function to use (Sigmoid, TanH, Linear, ReLu, BoundedReLu, SoftReLu, LeakyReLu, Abs, Sqrt, Square, Elu).
Definition: Descriptors.hpp:48

Member Function Documentation

◆ operator==()

bool operator== ( const ActivationDescriptor rhs) const
inline

Definition at line 41 of file Descriptors.hpp.

References ActivationDescriptor::m_B, and ActivationDescriptor::m_Function.

42  {
43  return m_Function == rhs.m_Function && m_A == rhs.m_B && m_B == rhs.m_B;
44  }
float m_A
Alpha upper bound value used by the activation functions. (BoundedReLu, Linear, TanH, Elu).
Definition: Descriptors.hpp:50
float m_B
Beta lower bound value used by the activation functions. (BoundedReLu, Linear, TanH).
Definition: Descriptors.hpp:52
ActivationFunction m_Function
The activation function to use (Sigmoid, TanH, Linear, ReLu, BoundedReLu, SoftReLu, LeakyReLu, Abs, Sqrt, Square, Elu).
Definition: Descriptors.hpp:48

Member Data Documentation

◆ m_A

◆ m_B

◆ m_Function


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