Function arm_lstm_unidirectional_f32_temp1_get_buffer_size

Function Documentation

int32_t arm_lstm_unidirectional_f32_temp1_get_buffer_size(const cmsis_nn_lstm_params_f32 *lstm_params)

Get size of the temp1 scratch buffer required by arm_lstm_unidirectional_f32().

Note

This query reports its invalid input as -1, following the integer LSTM temp sizers (arm_lstm_unidirectional_s8_temp1_get_buffer_size()), not the 0 used by the float convolution and fully-connected queries in this header.

Parameters:
Returns:

0 for any non-NULL lstm_params, on every build target: the float32 implementation computes its gate values per hidden unit in automatics and never dereferences temp1 or temp2, so both context pointers may be NULL. Returns -1 only for a NULL lstm_params. The query exists so arena-sizing code can treat every LSTM variant alike; a future implementation that starts staging gate vectors would change this figure, so size from the query rather than hard-coding 0.