24.02.1
|
Lower-Upper Bounded RELU activation object. More...
#include <NEActivationFunctionDetail.h>
Public Types | |
using | ExactType = typename wrapper::traits::neon_vector< T, S >::type |
SIMD vector type. More... | |
using | ExactTagType = typename wrapper::traits::neon_vector< T, S >::tag_type |
SIMD vector tag type. More... | |
Public Member Functions | |
lubrelu (ActivationLayerInfo act_info) | |
Construct a lower-upper bounded RELU activation object. More... | |
void | operator() (ExactType &vval) |
Run activation function. More... | |
void | operator() (T &val) |
Run activation function. More... | |
Data Fields | |
const T | alpha |
Scalar alpha. More... | |
const T | beta |
Scalar alpha. More... | |
const ExactType | valpha |
const ExactType | vbeta |
Vector of alphas. More... | |
Lower-Upper Bounded RELU activation object.
Definition at line 271 of file NEActivationFunctionDetail.h.
using ExactTagType = typename wrapper::traits::neon_vector<T, S>::tag_type |
SIMD vector tag type.
Definition at line 276 of file NEActivationFunctionDetail.h.
using ExactType = typename wrapper::traits::neon_vector<T, S>::type |
SIMD vector type.
Definition at line 274 of file NEActivationFunctionDetail.h.
|
inlineexplicit |
Construct a lower-upper bounded RELU activation object.
[in] | act_info | Activation layer information. |
Definition at line 282 of file NEActivationFunctionDetail.h.
|
inline |
Run activation function.
[in] | vval | Vector of values. |
Definition at line 294 of file NEActivationFunctionDetail.h.
References lubrelu< T, S >::valpha, lubrelu< T, S >::vbeta, arm_compute::wrapper::vmax(), and arm_compute::wrapper::vmin().
|
inline |
Run activation function.
[in] | val | Scalar value. |
Definition at line 303 of file NEActivationFunctionDetail.h.
References lubrelu< T, S >::alpha, and lubrelu< T, S >::beta.
const T alpha |
Scalar alpha.
Definition at line 308 of file NEActivationFunctionDetail.h.
Referenced by lubrelu< T, S >::operator()().
const T beta |
Scalar alpha.
Definition at line 309 of file NEActivationFunctionDetail.h.
Referenced by lubrelu< T, S >::operator()().
const ExactType valpha |
Definition at line 310 of file NEActivationFunctionDetail.h.
Referenced by lubrelu< T, S >::operator()().
const ExactType vbeta |
Vector of alphas.
Definition at line 311 of file NEActivationFunctionDetail.h.
Referenced by lubrelu< T, S >::operator()().