Crate caffe2op_lstm
source ·Structs
- | LSTMUnit computes the activations | of a standard LSTM (without peephole | connections), in a sequence-length | aware fashion. | | Concretely, given the (fused) inputs | X (TxNxD), the previous cell state (NxD), | and the sequence lengths (N), computes | the LSTM activations, avoiding computation | if the input is invalid (as in, the value | at X{t][n] >= seqLengths[n]. |
Traits
Functions
- | Parses a flat list of parameter tensors | into a list of CellParams |
- | Gathers every two elements of a vector | in a vector of pairs |
- Flattens a vector of pairs