input_descriptor
Descriptors of the input, hidden input, and cell-state input data.
Declaration
var input_descriptor: BNNSLSTMDataDescriptorDiscussion
You must define the layout of this descriptor as one of either:
BNNSDataLayoutSNE with the shape (input_size,batch_size,seq_len)
BNNSDataLayoutNSE with the shape (input_size,seq_len,batch_size)
If you don’t specify a layout, BNNS uses BNNSDataLayoutSNE.
Use C style multidimensional array notation to define the hierarchy of the hidden_desc and cell_state_desc descriptors as [num_layers][num_directions][batch_size][hidden_size].
If lstm_flags includes BNNSLayerFlagsLSTMBidirectional, BNNS defines num_directions as 2, or otherwise 1.
If the corresponding data of the hidden_desc and cell_state_desc descriptors is nil, BNNS treats their input_descriptor as zero-filled arrays.