Compute Library
ActivationLayerInfo Class Reference

Activation Layer Information class. More...

#include <ActivationLayerInfo.h>

Public Types

typedef arm_compute::ActivationFunction ActivationFunction
using LookupTable256 = std::array< qasymm8_t, 256 >
 Lookup table

Public Member Functions

 ActivationLayerInfo ()=default
 ActivationLayerInfo (ActivationFunction f, float a=0.0f, float b=0.0f)
 Default Constructor. More...
ActivationFunction activation () const
 Get the type of activation function. More...
float a () const
 Get the alpha value. More...
float b () const
 Get the beta value. More...
bool enabled () const
 Check if initialised. More...

Detailed Description

Activation Layer Information class.

Definition at line 55 of file ActivationLayerInfo.h.

Member Typedef Documentation

◆ ActivationFunction

◆ LookupTable256

using LookupTable256 = std::array<qasymm8_t, 256>

Lookup table

Definition at line 61 of file ActivationLayerInfo.h.

Constructor & Destructor Documentation

◆ ActivationLayerInfo() [1/2]

ActivationLayerInfo ( )

◆ ActivationLayerInfo() [2/2]

ActivationLayerInfo ( ActivationFunction  f,
float  a = 0.0f,
float  b = 0.0f 

Default Constructor.

[in]fThe activation function to use.
[in]a(Optional) The alpha parameter used by some activation functions (ActivationFunction::BOUNDED_RELU, ActivationFunction::LU_BOUNDED_RELU, ActivationFunction::LINEAR, ActivationFunction::TANH).
[in]b(Optional) The beta parameter used by some activation functions (ActivationFunction::LINEAR, ActivationFunction::LU_BOUNDED_RELU, ActivationFunction::TANH).

Definition at line 71 of file ActivationLayerInfo.h.

72  : _act(f), _a(a), _b(b), _enabled(true)
73  {
74  }

Member Function Documentation

◆ a()

◆ activation()

◆ b()

◆ enabled()

The documentation for this class was generated from the following file:
float a() const
Get the alpha value.
Definition: ActivationLayerInfo.h:81
float b() const
Get the beta value.
Definition: ActivationLayerInfo.h:86