oa::ml::matrix::lstm_scan
Run a whole-sequence LSTM recurrence from zero hidden and cell states. gates_i has shape [batch, sequence, 4 * hidden], weight_hh has [4 * hidden, hidden], and an optional bias_hh has [4 * hidden]. Gate order is input, forget, candidate, output. Errors Returns an error unless all values are nonempty same-runtime F32 matrices, shapes agree, hidden size is at most 1024, or runtime recording fails.
Function Documentation
Run a whole-sequence LSTM recurrence from zero hidden and cell states. gates_i has shape [batch, sequence, 4 * hidden], weight_hh has [4 * hidden, hidden], and an optional bias_hh has [4 * hidden]. Gate order is input, forget, candidate, output. Errors Returns an error unless all values are nonempty same-runtime F32 matrices, shapes agree, hidden size is at most 1024, or runtime recording fails.