tf.raw_ops.BlockLSTMGradV2
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
Computes the LSTM cell backward propagation for the entire time sequence.
tf.raw_ops.BlockLSTMGradV2(
    seq_len_max,
    x,
    cs_prev,
    h_prev,
    w,
    wci,
    wcf,
    wco,
    b,
    i,
    cs,
    f,
    o,
    ci,
    co,
    h,
    cs_grad,
    h_grad,
    use_peephole,
    name=None
)
This implementation is to be used in conjunction of BlockLSTMV2.
| Args | 
|---|
| seq_len_max | A Tensorof typeint64.
Maximum time length actually used by this input. Outputs are padded
with zeros beyond this length. | 
| x | A Tensor. Must be one of the following types:half,float32.
The sequence input to the LSTM, shape (timelen, batch_size, num_inputs). | 
| cs_prev | A Tensor. Must have the same type asx.
Value of the initial cell state. | 
| h_prev | A Tensor. Must have the same type asx.
Initial output of cell (to be used for peephole). | 
| w | A Tensor. Must have the same type asx. The weight matrix. | 
| wci | A Tensor. Must have the same type asx.
The weight matrix for input gate peephole connection. | 
| wcf | A Tensor. Must have the same type asx.
The weight matrix for forget gate peephole connection. | 
| wco | A Tensor. Must have the same type asx.
The weight matrix for output gate peephole connection. | 
| b | A Tensor. Must have the same type asx. The bias vector. | 
| i | A Tensor. Must have the same type asx.
The input gate over the whole time sequence. | 
| cs | A Tensor. Must have the same type asx.
The cell state before the tanh over the whole time sequence. | 
| f | A Tensor. Must have the same type asx.
The forget gate over the whole time sequence. | 
| o | A Tensor. Must have the same type asx.
The output gate over the whole time sequence. | 
| ci | A Tensor. Must have the same type asx.
The cell input over the whole time sequence. | 
| co | A Tensor. Must have the same type asx.
The cell after the tanh over the whole time sequence. | 
| h | A Tensor. Must have the same type asx.
The output h vector over the whole time sequence. | 
| cs_grad | A Tensor. Must have the same type asx.
The current gradient of cs. | 
| h_grad | A Tensor. Must have the same type asx.
The gradient of h vector. | 
| use_peephole | A bool. Whether to use peephole weights. | 
| name | A name for the operation (optional). | 
| Returns | 
|---|
| A tuple of Tensorobjects (x_grad, cs_prev_grad, h_prev_grad, w_grad, wci_grad, wcf_grad, wco_grad, b_grad). | 
| x_grad | A Tensor. Has the same type asx. | 
| cs_prev_grad | A Tensor. Has the same type asx. | 
| h_prev_grad | A Tensor. Has the same type asx. | 
| w_grad | A Tensor. Has the same type asx. | 
| wci_grad | A Tensor. Has the same type asx. | 
| wcf_grad | A Tensor. Has the same type asx. | 
| wco_grad | A Tensor. Has the same type asx. | 
| b_grad | A Tensor. Has the same type asx. | 
  
  
 
  
    
    
      
       
    
    
  
  
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
  Last updated 2022-10-27 UTC.
  
  
  
    
      [null,null,["Last updated 2022-10-27 UTC."],[],[]]