Struct cmsis_nn_lstm_context_f16

Struct Documentation

struct cmsis_nn_lstm_context_f16

Scratch and mutable state buffers for a float32 LSTM invocation.

Public Members

float16_t *temp1

Unused by the current implementation and may be NULL. Sized by arm_lstm_unidirectional_f16_temp1_get_buffer_size(), which reports 0; size from the query rather than hard-coding NULL if the buffer is arena-allocated.

float16_t *temp2

Unused by the current implementation and may be NULL. Sized by arm_lstm_unidirectional_f16_temp2_get_buffer_size().

float16_t *cell_state

Mutable cell-state buffer (in/out when streaming).

float16_t *hidden_state

Optional in/out hidden state for streaming; NULL selects stateless. Streaming is NULL-gated, so zero-initialise the context (e.g. designated initialisers) to keep legacy 3-field callers stateless. Matches the quantized cmsis_nn_lstm_context contract.