23.11
|
Functions | |
bool | is_relu (ActivationLayerInfo activation_info) |
Checks if activation information correspond to a relu activation function. More... | |
bool | is_relu6 (ActivationLayerInfo activation_info) |
Checks if activation information correspond to a relu6 activation function. More... | |
template<typename T > | |
void | build_lstm_params_tensor_info (const LSTMParams< T > &lstm_params, LSTMParams< ITensorInfo > *lstm_params_info) |
Build LSTMParams<ITensorInfo> object by extracting the metadata from each tensor. More... | |
|
inline |
Build LSTMParams<ITensorInfo> object by extracting the metadata from each tensor.
[in] | lstm_params | The LSTMParams<T> object containing the tensors. |
[out] | lstm_params_info | The LSTMParams<ITensorInfo> to be constructed. |
Definition at line 73 of file InfoHelpers.h.
References ARM_COMPUTE_ERROR_ON_NULLPTR, LSTMParams< T >::cell_intermediate_scale(), LSTMParams< T >::cell_layer_norm_weights(), LSTMParams< T >::cell_to_forget_weights(), LSTMParams< T >::cell_to_input_weights(), LSTMParams< T >::cell_to_output_weights(), LSTMParams< T >::forget_intermediate_scale(), LSTMParams< T >::forget_layer_norm_weights(), LSTMParams< T >::has_cifg_opt(), LSTMParams< T >::has_peephole_opt(), LSTMParams< T >::has_projection(), LSTMParams< T >::hidden_state_scale(), LSTMParams< T >::hidden_state_zero(), LSTMParams< T >::input_gate_bias(), arm_compute::test::validation::input_info, LSTMParams< T >::input_intermediate_scale(), LSTMParams< T >::input_layer_norm_weights(), LSTMParams< T >::input_to_input_weights(), arm_compute::test::validation::output_info, LSTMParams< T >::output_intermediate_scale(), LSTMParams< T >::output_layer_norm_weights(), LSTMParams< T >::projection_bias(), LSTMParams< T >::projection_weights(), LSTMParams< T >::recurrent_to_input_weights(), LSTMParams< T >::set_cifg_params(), LSTMParams< T >::set_hidden_state_params(), LSTMParams< T >::set_layer_normalization_params(), LSTMParams< T >::set_matmul_scale_params(), LSTMParams< T >::set_peephole_params(), LSTMParams< T >::set_projection_params(), and LSTMParams< T >::use_layer_norm().
Referenced by NELSTMLayer::configure(), NEQLSTMLayer::configure(), CLLSTMLayer::configure(), and CLQLSTMLayer::configure().
|
inline |
Checks if activation information correspond to a relu activation function.
[in] | activation_info | Activation metadata |
Definition at line 43 of file InfoHelpers.h.
References ActivationLayerInfo::activation(), and ActivationLayerInfo::enabled().
|
inline |
Checks if activation information correspond to a relu6 activation function.
[in] | activation_info | Activation metadata |
Definition at line 54 of file InfoHelpers.h.
References ActivationLayerInfo::a(), ActivationLayerInfo::activation(), ActivationLayerInfo::b(), and ActivationLayerInfo::enabled().