# Seeking for clarification of dropout in RNN/LSTM

**URL:** <https://discuss.pytorch.org/t/seeking-for-clarification-of-dropout-in-rnn-lstm/13963>\
**Category:** Uncategorized\
**Created:** [February 23, 2018, 3:39pm UTC](https://discuss.pytorch.org/t/seeking-for-clarification-of-dropout-in-rnn-lstm/13963 "2018-02-23T15:39:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cosmozhang1988](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/cosmozhang1988/32/1593_2.png) [@cosmozhang1988](https://discuss.pytorch.org/u/cosmozhang1988)\
**Post date:** [February 23, 2018, 3:39pm UTC](https://discuss.pytorch.org/t/seeking-for-clarification-of-dropout-in-rnn-lstm/13963/1 "2018-02-23T15:39:28Z")

</div>

Based on this figure in the post: [LSTM dropout - Clarification of Last Layer](https://discuss.pytorch.org/t/lstm-dropout-clarification-of-last-layer/5588)

 ![diagram](https://discuss.pytorch.org/uploads/default/original/2X/6/62f94ceee433b693ef73be231f51ae4291e53880.png)

The dropout is between layers but not between timesteps. Is that true?

---

<div class="post-metadata">

**Author:** ![cosmozhang1988](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/cosmozhang1988/32/1593_2.png) [@cosmozhang1988](https://discuss.pytorch.org/u/cosmozhang1988)\
**Post date:** [February 23, 2018, 4:49pm UTC](https://discuss.pytorch.org/t/seeking-for-clarification-of-dropout-in-rnn-lstm/13963/2 "2018-02-23T16:49:58Z")

</div>

Based on reading these code (StackedRNN): [https://github.com/pytorch/pytorch/blob/master/torch/nn/\_functions/rnn.py](https://github.com/pytorch/pytorch/blob/master/torch/nn/_functions/rnn.py)

The dropout between steps are not introduced yet…
