23.08
|
Activation Layer Information class. More...
#include <ActivationLayerInfo.h>
Public Types | |
typedef arm_compute::ActivationFunction | ActivationFunction |
using | LookupTable256 = std::array< qasymm8_t, 256 > |
Lookup table More... | |
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... | |
Activation Layer Information class.
Definition at line 55 of file ActivationLayerInfo.h.
Definition at line 58 of file ActivationLayerInfo.h.
using LookupTable256 = std::array<qasymm8_t, 256> |
Lookup table
Definition at line 61 of file ActivationLayerInfo.h.
|
default |
|
inline |
Default Constructor.
[in] | f | The 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.
|
inline |
Get the alpha value.
Definition at line 81 of file ActivationLayerInfo.h.
Referenced by CpuActivationKernel::configure(), ClTemplateActivation::get_tag_lut(), arm_compute::utils::info_helpers::is_relu6(), arm_compute::assembly_utils::map_to_arm_gemm_activation(), ClGemmConv2d::validate(), and GpuCkwActivation::write_component_code().
|
inline |
Get the type of activation function.
Definition at line 76 of file ActivationLayerInfo.h.
Referenced by CpuActivationKernel::configure(), ClGemmConv2d::configure(), arm_compute::graph::backends::detail::create_batch_normalization_layer(), arm_compute::graph::backends::detail::create_convolution_layer(), arm_compute::graph::backends::detail::create_depthwise_convolution_layer(), arm_compute::graph::backends::detail::create_fused_convolution_batch_normalization_layer(), arm_compute::graph::backends::detail::create_fused_convolution_with_post_op(), arm_compute::graph::backends::detail::create_fused_depthwise_convolution_batch_normalization_layer(), ClTemplateActivation::get_tag_lut(), arm_compute::utils::info_helpers::is_relu(), arm_compute::utils::info_helpers::is_relu6(), arm_compute::assembly_utils::map_to_arm_gemm_activation(), CpuFullyConnected::validate(), ClFullyConnected::validate(), ClGemmConv2d::validate(), and GpuCkwActivation::write_component_code().
|
inline |
Get the beta value.
Definition at line 86 of file ActivationLayerInfo.h.
Referenced by CpuActivationKernel::configure(), ClTemplateActivation::get_tag_lut(), arm_compute::utils::info_helpers::is_relu6(), arm_compute::assembly_utils::map_to_arm_gemm_activation(), ClGemmConv2d::validate(), and GpuCkwActivation::write_component_code().
|
inline |
Check if initialised.
Definition at line 91 of file ActivationLayerInfo.h.
Referenced by ClDirectConv2d::configure(), FusedDepthwiseConvolutionBatchNormalizationFunction< TargetInfo, FusedLayerTypes >::configure(), NEBatchNormalizationLayerKernel::configure(), ClGemmConv2d::configure(), CpuGemmLowpMatrixMultiplyCore::configure(), arm_compute::graph::backends::detail::create_batch_normalization_layer(), arm_compute::graph::backends::detail::create_convolution_layer(), arm_compute::graph::backends::detail::create_depthwise_convolution_layer(), arm_compute::graph::backends::detail::create_fused_convolution_batch_normalization_layer(), arm_compute::graph::backends::detail::create_fused_convolution_with_post_op(), arm_compute::graph::backends::detail::create_fused_depthwise_convolution_batch_normalization_layer(), arm_compute::utils::info_helpers::is_relu(), arm_compute::utils::info_helpers::is_relu6(), CpuActivationKernel::run_op(), CpuFullyConnected::validate(), ClFullyConnected::validate(), CpuGemm::validate(), ClGemmConv2d::validate(), and CpuGemmLowpMatrixMultiplyCore::validate().