Compute Library
 22.05
dummy< T, S > Struct Template Reference

Dummy activation object. More...

#include <NEActivationFunctionDetail.h>

Public Types

using ExactType = typename wrapper::traits::neon_vector< T, S >::type
 SIMD vector type. More...
 

Public Member Functions

 dummy (ActivationLayerInfo act_info)
 Construct a dummy activation object. More...
 
void operator() (ExactType &vval)
 Run activation function. More...
 
void operator() (T &val)
 Run activation function. More...
 

Detailed Description

template<typename T, int S>
struct arm_compute::detail::dummy< T, S >

Dummy activation object.

Definition at line 35 of file NEActivationFunctionDetail.h.

Member Typedef Documentation

◆ ExactType

using ExactType = typename wrapper::traits::neon_vector<T, S>::type

SIMD vector type.

Definition at line 38 of file NEActivationFunctionDetail.h.

Constructor & Destructor Documentation

◆ dummy()

dummy ( ActivationLayerInfo  act_info)
inlineexplicit

Construct a dummy activation object.

Parameters
[in]act_infoActivation layer information.

Definition at line 44 of file NEActivationFunctionDetail.h.

References ARM_COMPUTE_UNUSED.

45  {
46  ARM_COMPUTE_UNUSED(act_info);
47  }
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
Definition: Error.h:152

Member Function Documentation

◆ operator()() [1/2]

void operator() ( ExactType vval)
inline

Run activation function.

Parameters
[in]vvalVector of values.

Definition at line 53 of file NEActivationFunctionDetail.h.

References ARM_COMPUTE_UNUSED.

54  {
55  ARM_COMPUTE_UNUSED(vval);
56  }
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
Definition: Error.h:152

◆ operator()() [2/2]

void operator() ( T &  val)
inline

Run activation function.

Parameters
[in]valScalar value.

Definition at line 62 of file NEActivationFunctionDetail.h.

References ARM_COMPUTE_UNUSED.

63  {
64  ARM_COMPUTE_UNUSED(val);
65  }
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
Definition: Error.h:152

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