# tf.compat.v1.nn.rnn_cell.LSTMStateTuple

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/keras-team/keras/tree/v2.13.1/keras/layers/rnn/legacy_cells.py#L645-L666) |

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

    tf.compat.v1.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` | A `namedtuple` alias for field number 0 |
| `h` | A `namedtuple` alias for field number 1 |
| `dtype` | <br /> <br /> |

<br />