Function arm_lstm_unidirectional_f32_temp1_get_buffer_size¶
Defined in File arm_nnfunctions_flt.h
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:
lstm_params – [in] LSTM operator parameters, i.e. the same cmsis_nn_lstm_params_f32 passed to arm_lstm_unidirectional_f32(). No field is read.
- 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.