# tf.nn.rnn_cell.LSTMStateTuple

<br />

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

Tuple used by LSTM Cells for `state_size`, `zero_state`, and output state.

#### View aliases


**Main aliases**

\`tf.contrib.rnn.LSTMStateTuple\`
**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.nn.rnn_cell.LSTMStateTuple`](https://www.tensorflow.org/api_docs/python/tf/compat/v1/nn/rnn_cell/LSTMStateTuple)

<br />

    tf.nn.rnn_cell.LSTMStateTuple(
        c, h
    )

Stores two elements: `(c, h)`, in that order. Where `c` is the hidden state
and `h` is the output.

Only used when `state_is_tuple=True`.

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `c` | <br /> <br /> |
| `h` | <br /> <br /> |
| `dtype` | <br /> <br /> |

<br />