ArmNN
 20.08
ActivationDescriptor Struct Reference

An ActivationDescriptor for the ActivationLayer. More...

#include <Descriptors.hpp>

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

Constructor & Destructor Documentation

◆ ActivationDescriptor() [1/2]

Definition at line 22 of file Descriptors.hpp.

24  , m_A(0)
25  , m_B(0)
26  {}
float m_A
Alpha upper bound value used by the activation functions. (BoundedReLu, Linear, TanH, Elu).
Definition: Descriptors.hpp:45
float m_B
Beta lower bound value used by the activation functions. (BoundedReLu, Linear, TanH).
Definition: Descriptors.hpp:47
ActivationFunction m_Function
The activation function to use (Sigmoid, TanH, Linear, ReLu, BoundedReLu, SoftReLu, LeakyReLu, Abs, Sqrt, Square, Elu).
Definition: Descriptors.hpp:43

◆ ActivationDescriptor() [2/2]

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

Definition at line 28 of file Descriptors.hpp.

31  : m_Function(activation)
32  , m_A(a)
33  , m_B(b)
34  {}
float m_A
Alpha upper bound value used by the activation functions. (BoundedReLu, Linear, TanH, Elu).
Definition: Descriptors.hpp:45
float m_B
Beta lower bound value used by the activation functions. (BoundedReLu, Linear, TanH).
Definition: Descriptors.hpp:47
ActivationFunction m_Function
The activation function to use (Sigmoid, TanH, Linear, ReLu, BoundedReLu, SoftReLu, LeakyReLu, Abs, Sqrt, Square, Elu).
Definition: Descriptors.hpp:43

Member Function Documentation

◆ operator==()

bool operator== ( const ActivationDescriptor rhs) const
inline

Definition at line 36 of file Descriptors.hpp.

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

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

Member Data Documentation

◆ m_A

◆ m_B

◆ m_Function


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