# Functionalization in PyTorch: Everything You Wanted To Know

**URL:** <https://dev-discuss.pytorch.org/t/functionalization-in-pytorch-everything-you-wanted-to-know/965>\
**Category:** compiler\
**Created:** [January 6, 2023, 3:42pm UTC](https://dev-discuss.pytorch.org/t/functionalization-in-pytorch-everything-you-wanted-to-know/965 "2023-01-06T15:42:03Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![bdhirsh](https://yyz2.discourse-cdn.com/flex036/user_avatar/dev-discuss.pytorch.org/bdhirsh/32/575_2.png) [@bdhirsh](https://dev-discuss.pytorch.org/u/bdhirsh)\
**Post date:** [April 7, 2023, 1:04am UTC](https://dev-discuss.pytorch.org/t/functionalization-in-pytorch-everything-you-wanted-to-know/965/3 "2023-04-07T01:04:30Z")

</div>

Yes, this feature is available in the 2.0 release. `torch.compile()` uses functionalization internally, and it’s also available more directly as a program transform using `functorch.functionalize()`.

---

_[View the full topic](https://dev-discuss.pytorch.org/t/functionalization-in-pytorch-everything-you-wanted-to-know/965)._
