# How does detach() work?

**URL:** <https://discuss.pytorch.org/t/how-does-detach-work/2308>\
**Category:** Uncategorized\
**Created:** [April 26, 2017, 3:01pm UTC](https://discuss.pytorch.org/t/how-does-detach-work/2308 "2017-04-26T15:01:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![apaszke](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/apaszke/32/21_2.png) [@apaszke](https://discuss.pytorch.org/u/apaszke)\
**Post date:** [April 26, 2017, 4:08pm UTC](https://discuss.pytorch.org/t/how-does-detach-work/2308/2 "2017-04-26T16:08:47Z")

</div>

A simple search in the forums should be enough to answer this question. Here’s an [example answer](https://discuss.pytorch.org/t/help-clarifying-repackage-hidden-in-word-language-model/226/2?u=apaszke).

---

_[View the full topic](https://discuss.pytorch.org/t/how-does-detach-work/2308)._
