# tf.contrib.rnn.LSTMBlockWrapper

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/rnn/python/ops/lstm_ops.py#L402-L537) |

This is a helper class that provides housekeeping for LSTM cells.

Inherits From: [`Layer`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/layers/Layer)

    tf.contrib.rnn.LSTMBlockWrapper(
        trainable=True, name=None, dtype=None, **kwargs
    )

This may be useful for alternative LSTM and similar type of cells.
The subclasses must implement `_call_cell` method and `num_units` property.

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `graph` | DEPRECATED FUNCTION <br /> > [!WARNING] > **Warning:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Stop using this property because tf.layers layers no longer track their graph. |
| `num_units` | Number of units in this cell (output dimension). |
| `scope_name` | <br /> |

<br />