21.08
|
Activation Layer Information class. More...
#include <Types.h>
Public Types | |
enum | ActivationFunction { LOGISTIC, TANH, RELU, BOUNDED_RELU, LU_BOUNDED_RELU, LEAKY_RELU, SOFT_RELU, ELU, ABS, SQUARE, SQRT, LINEAR, IDENTITY, HARD_SWISH } |
Available activation functions. 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... | |
|
strong |
Available activation functions.
Definition at line 1479 of file Types.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 1505 of file Types.h.
|
inline |
Get the alpha value.
Definition at line 1515 of file Types.h.
Referenced by arm_compute::test::validation::reference::activation_layer(), ClElementwiseKernel::ClElementwiseKernel(), ClActivationKernel::configure(), ClGemmMatrixMultiplyNativeKernel::configure(), ClWinogradOutputTransformKernel::configure(), ClGemmMatrixMultiplyKernel::configure(), ClDirectConv2dKernel::configure(), ClMulKernel::configure(), ClGemmMatrixMultiplyReshapedOnlyRhsKernel::configure(), CLBatchNormalizationLayerKernel::configure(), ClGemmMatrixMultiplyReshapedKernel::configure(), ClComplexMulKernel::configure(), arm_compute::cpu::fp32_neon_activation(), arm_compute::get_quantized_activation_min_max(), arm_compute::utils::info_helpers::is_relu6(), arm_compute::assembly_utils::map_to_arm_gemm_activation(), arm_compute::cpu::qasymm8_neon_activation(), arm_compute::cpu::qasymm8_signed_neon_activation(), arm_compute::cpu::qsymm16_neon_activation(), and ClGemmConvolution::validate().
|
inline |
Get the type of activation function.
Definition at line 1510 of file Types.h.
Referenced by arm_compute::test::validation::reference::activation_layer(), ClElementwiseKernel::ClElementwiseKernel(), ClActivationKernel::configure(), ClGemmMatrixMultiplyNativeKernel::configure(), ClWinogradOutputTransformKernel::configure(), ClGemmMatrixMultiplyKernel::configure(), ClDirectConv2dKernel::configure(), ClMulKernel::configure(), ClGemmMatrixMultiplyReshapedOnlyRhsKernel::configure(), CLBatchNormalizationLayerKernel::configure(), ClGemmMatrixMultiplyReshapedKernel::configure(), ClComplexMulKernel::configure(), ClGemmConvolution::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_depthwise_convolution_batch_normalization_layer(), arm_compute::cpu::fp32_neon_activation(), arm_compute::cpu::fp32_neon_batch_normalization(), arm_compute::get_quantized_activation_min_max(), arm_compute::utils::info_helpers::is_relu(), arm_compute::utils::info_helpers::is_relu6(), arm_compute::assembly_utils::map_to_arm_gemm_activation(), arm_compute::cpu::qasymm8_neon_activation(), arm_compute::cpu::qasymm8_signed_neon_activation(), arm_compute::cpu::qsymm16_neon_activation(), arm_compute::to_string(), ClFullyConnected::validate(), CpuFullyConnected::validate(), ClGemmConvolution::validate(), and DotGraphVisitor::visit().
|
inline |
Get the beta value.
Definition at line 1520 of file Types.h.
Referenced by arm_compute::test::validation::reference::activation_layer(), ClElementwiseKernel::ClElementwiseKernel(), ClActivationKernel::configure(), ClGemmMatrixMultiplyNativeKernel::configure(), ClWinogradOutputTransformKernel::configure(), ClGemmMatrixMultiplyKernel::configure(), ClDirectConv2dKernel::configure(), ClMulKernel::configure(), ClGemmMatrixMultiplyReshapedOnlyRhsKernel::configure(), CLBatchNormalizationLayerKernel::configure(), ClGemmMatrixMultiplyReshapedKernel::configure(), ClComplexMulKernel::configure(), arm_compute::cpu::fp32_neon_activation(), arm_compute::get_quantized_activation_min_max(), arm_compute::utils::info_helpers::is_relu6(), arm_compute::assembly_utils::map_to_arm_gemm_activation(), arm_compute::cpu::qasymm8_neon_activation(), arm_compute::cpu::qasymm8_signed_neon_activation(), arm_compute::cpu::qsymm16_neon_activation(), and ClGemmConvolution::validate().
|
inline |
Check if initialised.
Definition at line 1525 of file Types.h.
References ActivationLayerInfo::IDENTITY.
Referenced by arm_compute::test::validation::reference::batch_normalization_layer(), ClElementwiseKernel::ClElementwiseKernel(), ClGemmMatrixMultiplyNativeKernel::configure(), ClDirectConv2d::configure(), ClWinogradOutputTransformKernel::configure(), ClGemmMatrixMultiplyKernel::configure(), ClDirectConv2dKernel::configure(), FusedDepthwiseConvolutionBatchNormalizationFunction< TargetInfo, FusedLayerTypes >::configure(), NEBatchNormalizationLayerKernel::configure(), CpuGemmDirectConv2d::configure(), ClMulKernel::configure(), CpuWinogradConv2d::configure(), ClGemmMatrixMultiplyReshapedOnlyRhsKernel::configure(), CpuDirectConv2d::configure(), CLBatchNormalizationLayerKernel::configure(), ClGemmMatrixMultiplyReshapedKernel::configure(), NEFFTConvolutionLayer::configure(), ClGemmConvolution::configure(), ClComplexMulKernel::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_depthwise_convolution_batch_normalization_layer(), arm_compute::cpu::fp32_neon_batch_normalization(), arm_compute::utils::info_helpers::is_relu(), arm_compute::utils::info_helpers::is_relu6(), ClMulKernel::run_op(), arm_compute::to_string(), CpuSub::validate(), CpuAdd::validate(), ClDirectConv2d::validate(), CpuMul::validate(), NEElementwiseMax::validate(), CpuDirectConv2d::validate(), ClFullyConnected::validate(), CpuFullyConnected::validate(), CpuComplexMul::validate(), CpuGemm::validate(), ClGemmConvolution::validate(), NEFFTConvolutionLayer::validate(), CpuGemmLowpMatrixMultiplyCore::validate(), CLFFTConvolutionLayer::validate(), NEElementwiseMin::validate(), ClSaturatedArithmeticKernel::validate(), ClArithmeticKernel::validate(), NEElementwiseSquaredDiff::validate(), NEElementwiseDivision::validate(), NEElementwisePower::validate(), and DotGraphVisitor::visit().