Unidirectional LSTM inference.
arm_cmsis_nn_status arm_lstm_unidirectional_f32( const float32_t *input, float32_t *output, const cmsis_nn_lstm_params_f32 *params, cmsis_nn_lstm_context_f32 *buffers)Unidirectional LSTM inference.
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
input | const float32_t * | in | Pointer to the input sequence tensor. |
output | float32_t * | out | Pointer to the output sequence tensor. |
params | const cmsis_nn_lstm_params_f32 * | in | LSTM parameters and weights. |
buffers | cmsis_nn_lstm_context_f32 * | in, out | Mutable LSTM scratch and state buffers. temp1 and temp2 are sized by `arm_lstm_unidirectional_f32_temp1_get_buffer_size()` / `arm_lstm_unidirectional_f32_temp2_get_buffer_size()`, which report 0: the float implementation never dereferences them and both may be NULL. |
Returns
| Description |
|---|
| `ARM_CMSIS_NN_SUCCESS` on success or `ARM_CMSIS_NN_ARG_ERROR` on invalid arguments. |