# Developer docs for PyTorch inductor?

**URL:** <https://dev-discuss.pytorch.org/t/developer-docs-for-pytorch-inductor/1714>\
**Category:** compiler\
**Created:** [December 8, 2023, 7:42am UTC](https://dev-discuss.pytorch.org/t/developer-docs-for-pytorch-inductor/1714 "2023-12-08T07:42:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anubane](https://yyz2.discourse-cdn.com/flex036/user_avatar/dev-discuss.pytorch.org/anubane/32/1651_2.png) [@anubane](https://dev-discuss.pytorch.org/u/anubane)\
**Post date:** [December 8, 2023, 7:42am UTC](https://dev-discuss.pytorch.org/t/developer-docs-for-pytorch-inductor/1714/1 "2023-12-08T07:42:52Z")

</div>

Are there any developer docs or guidelines regarding how a custom backend may be developed for inductor.

In general is there a way to understand the code structure at [Inductor CodeBase](https://github.com/pytorch/pytorch/tree/main/torch/_inductor)?

I understand that there are some projects [Hidet](https://github.com/hidet-org/hidet) and [Intel IPEX](https://github.com/intel/intel-extension-for-pytorch), but, some documentation from PyTorch developer’s team would be best!

---

<div class="post-metadata">

**Author:** ![anubane](https://yyz2.discourse-cdn.com/flex036/user_avatar/dev-discuss.pytorch.org/anubane/32/1651_2.png) [@anubane](https://dev-discuss.pytorch.org/u/anubane)\
**Post date:** [December 11, 2023, 6:41am UTC](https://dev-discuss.pytorch.org/t/developer-docs-for-pytorch-inductor/1714/2 "2023-12-11T06:41:52Z")

</div>

For those who wish to deep dive into the PyTorch dynamo module, check out [  
Edward Z. Yang’s torchdynamo deep dive](https://www.youtube.com/watch?v=egZB5Uxki0I)

---

<div class="post-metadata">

**Author:** ![youkaichao](https://yyz2.discourse-cdn.com/flex036/user_avatar/dev-discuss.pytorch.org/youkaichao/32/1278_2.png) [@youkaichao](https://dev-discuss.pytorch.org/u/youkaichao)\
**Post date:** [December 11, 2023, 7:07am UTC](https://dev-discuss.pytorch.org/t/developer-docs-for-pytorch-inductor/1714/3 "2023-12-11T07:07:35Z")

</div>

Hi, I’m working on a tutorial for `torch.compile`, and the focus is more on Dynamo and AOTAutograd. Please checkout [A Walk Through Example of torch.compile — depyf documentation](https://depyf.readthedocs.io/en/latest/walk_through.html) and the project [GitHub - thuml/depyf: depyf is a tool to help you understand and adapt to PyTorch compiler torch.compile.](https://github.com/thuml/depyf) .

I would also like to see some docs for inductor!

---

<div class="post-metadata">

**Author:** ![anubane](https://yyz2.discourse-cdn.com/flex036/user_avatar/dev-discuss.pytorch.org/anubane/32/1651_2.png) [@anubane](https://dev-discuss.pytorch.org/u/anubane)\
**Post date:** [February 6, 2024, 6:58am UTC](https://dev-discuss.pytorch.org/t/developer-docs-for-pytorch-inductor/1714/4 "2024-02-06T06:58:38Z")

</div>

Found a relevant post: [What should we do about developer documentation?](https://dev-discuss.pytorch.org/t/what-should-we-do-about-developer-documentation/491)
