# Masking Recurrent layers

**URL:** <https://discuss.pytorch.org/t/masking-recurrent-layers/21398>\
**Category:** nlp\
**Created:** [July 19, 2018, 6:48pm UTC](https://discuss.pytorch.org/t/masking-recurrent-layers/21398 "2018-07-19T18:48:59Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![aplassard](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/aplassard/32/5743_2.png) [@aplassard](https://discuss.pytorch.org/u/aplassard)\
**Post date:** [July 19, 2018, 7:02pm UTC](https://discuss.pytorch.org/t/masking-recurrent-layers/21398/4 "2018-07-19T19:02:12Z")

</div>

I think this should be what you’re looking for - [Simple working example how to use packing for variable-length sequence inputs for rnn](https://discuss.pytorch.org/t/simple-working-example-how-to-use-packing-for-variable-length-sequence-inputs-for-rnn/2120)

---

_[View the full topic](https://discuss.pytorch.org/t/masking-recurrent-layers/21398)._
