Contents

input_descriptor

Descriptors of the input, hidden input, and cell-state input data.

Declaration

var input_descriptor: BNNSLSTMDataDescriptor

Discussion

You must define the layout of this descriptor as one of either:

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.

See Also

Instance Properties