# Copy.deepcopy() vs clone()

**URL:** <https://discuss.pytorch.org/t/copy-deepcopy-vs-clone/55022>\
**Category:** Uncategorized\
**Created:** [September 3, 2019, 7:33am UTC](https://discuss.pytorch.org/t/copy-deepcopy-vs-clone/55022 "2019-09-03T07:33:29Z")\
**Posts on this page:** 1\
**Showing post:** 9

<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:** [June 17, 2020, 7:38am UTC](https://discuss.pytorch.org/t/copy-deepcopy-vs-clone/55022/9 "2020-06-17T07:38:52Z")

</div>

Answered [here](https://discuss.pytorch.org/t/confusion-about-using-clone/39673/12) and [here](https://discuss.pytorch.org/t/clone-and-detach-in-v0-4-0/16861/21).

---

_[View the full topic](https://discuss.pytorch.org/t/copy-deepcopy-vs-clone/55022)._
