# 'CUDA error: out of memory' after several epochs

**URL:** <https://discuss.pytorch.org/t/cuda-error-out-of-memory-after-several-epochs/29094>\
**Category:** Uncategorized\
**Created:** [November 8, 2018, 2:49pm UTC](https://discuss.pytorch.org/t/cuda-error-out-of-memory-after-several-epochs/29094 "2018-11-08T14:49:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![lelouedec](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/lelouedec/32/3563_2.png) [@lelouedec](https://discuss.pytorch.org/u/lelouedec)\
**Post date:** [November 8, 2018, 2:53pm UTC](https://discuss.pytorch.org/t/cuda-error-out-of-memory-after-several-epochs/29094/2 "2018-11-08T14:53:31Z")

</div>

Maybe don’t use

> pin\_memory()

---

_[View the full topic](https://discuss.pytorch.org/t/cuda-error-out-of-memory-after-several-epochs/29094)._
