tf.raw_ops.BlockLSTMGrad

Computes the LSTM cell backward propagation for the entire time sequence.

This implementation is to be used in conjunction of LSTMBlock.

seq_len_maxA Tensor of type int64. Maximum time length actually used by this input. Outputs are padded with zeros beyond this length.
xA Tensor. Must be one of the following types: half, float32. The sequence input to the LSTM, shape (timelen, batch_size, num_inputs).
cs_prevA Tensor. Must have the same type as x. Value of the initial cell state.
h_prevA Tensor. Must have the same type as x. Initial output of cell (to be used for peephole).
wA Tensor. Must have the same type as x. The weight matrix.
wciA Tensor. Must have the same type as x. The weight matrix for input gate peephole connection.
wcfA Tensor. Must have the same type as x. The weight matrix for forget gate peephole connection.
wcoA Tensor. Must have the same type as x. The weight matrix for output gate peephole connection.
bA Tensor. Must have the same type as x. The bias vector.
iA Tensor. Must have the same type as x. The input gate over the whole time sequence.
csA Tensor. Must have the same type as x. The cell state before the tanh over the whole time sequence.
fA Tensor. Must have the same type as x. The forget gate over the whole time sequence.
oA Tensor. Must have the same type as x. The output gate over the whole time sequence.
ciA Tensor. Must have the same type as x. The cell input over the whole time sequence.
coA Tensor. Must have the same type as x. The cell after the tanh over the whole time sequence.
hA Tensor. Must have the same type as x. The output h vector over the whole time sequence.
cs_gradA Tensor. Must have the same type as x. The current gradient of cs.
h_gradA Tensor. Must have the same type as x. The gradient of h vector.
use_peepholeA bool. Whether to use peephole weights.
nameA name for the operation (optional).

A tuple of Tensor objects (x_grad, cs_prev_grad, h_prev_grad, w_grad, wci_grad, wcf_grad, wco_grad, b_grad).
x_gradA Tensor. Has the same type as x.
cs_prev_gradA Tensor. Has the same type as x.
h_prev_gradA Tensor. Has the same type as x.
w_gradA Tensor. Has the same type as x.
wci_gradA Tensor. Has the same type as x.
wcf_gradA Tensor. Has the same type as x.
wco_gradA Tensor. Has the same type as x.
b_gradA Tensor. Has the same type as x.