# Shuffle batch retrieval but not values within batch

**URL:** <https://discuss.pytorch.org/t/shuffle-batch-retrieval-but-not-values-within-batch/186449>\
**Category:** data\
**Created:** [August 16, 2023, 3:50am UTC](https://discuss.pytorch.org/t/shuffle-batch-retrieval-but-not-values-within-batch/186449 "2023-08-16T03:50:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ptrblck](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ptrblck/32/1823_2.png) [@ptrblck](https://discuss.pytorch.org/u/ptrblck)\
**Post date:** [August 16, 2023, 2:47pm UTC](https://discuss.pytorch.org/t/shuffle-batch-retrieval-but-not-values-within-batch/186449/2 "2023-08-16T14:47:47Z")

</div>

Take a look at e.g. [this post](https://discuss.pytorch.org/t/gru-and-padded-sequences-tipps-and-tricks/90729/3) from @vdw where he shared a similar approach.

---

_[View the full topic](https://discuss.pytorch.org/t/shuffle-batch-retrieval-but-not-values-within-batch/186449)._
