# How to understand the files generated by TORCH\_COMPILE\_DEBUG

**URL:** <https://discuss.pytorch.org/t/how-to-understand-the-files-generated-by-torch-compile-debug/222854>\
**Category:** FX (Functional Transformations)\
**Created:** [September 4, 2025, 3:30am UTC](https://discuss.pytorch.org/t/how-to-understand-the-files-generated-by-torch-compile-debug/222854 "2025-09-04T03:30:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guitenbay](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/guitenbay/32/78134_2.png) [@Guitenbay](https://discuss.pytorch.org/u/Guitenbay)\
**Post date:** [September 4, 2025, 3:30am UTC](https://discuss.pytorch.org/t/how-to-understand-the-files-generated-by-torch-compile-debug/222854/1 "2025-09-04T03:30:32Z")

</div>

I use torch.compile to run the resnet50 model. The env are:

```bash
TORCH_COMPILE_DEBUG=1 INDUCTOR_ORIG_FX_SVG=1 INDUCTOR_POST_FUSION_SVG=1 TORCHINDUCTOR_FX_GRAPH_CACHE=0

```

then I get some files:

 ![image](https://discuss.pytorch.org/uploads/default/original/3X/b/9/b961d178bff6bf56487eb75ce3c69d16f5b1f32a.png)

I know orig\_fx\_graph\_diagram.svg is compute graph before Inductor, and graph\_diagram.svg is graph after Inductor.

but how can I find the relation between the op in orig\_fx\_graph\_diagram and the op in graph\_diagram ?

Dose the relation show in inductor\_provenance\_tracking\_node\_mappings.json or inductor\_triton\_kernel\_to\_post\_grad\_nodes.json ?
