Name Date Size #Lines LOC

..--

api/H25-Apr-2025-2,4081,727

backends/H25-Apr-2025-3,4412,396

codegen/H25-Apr-2025-7,0745,415

cuda/H25-Apr-2025-180135

docs/H25-Apr-2025-426332

frontend/H25-Apr-2025-18,33014,425

ir/H25-Apr-2025-9,5167,045

mobile/H25-Apr-2025-11,3658,201

operator_upgraders/H25-Apr-2025-878710

passes/H25-Apr-2025-48,63836,695

python/H25-Apr-2025-12,47410,710

runtime/H25-Apr-2025-40,20733,760

serialization/H25-Apr-2025-14,88212,269

tensorexpr/H25-Apr-2025-44,71636,229

testing/H25-Apr-2025-789641

JIT-AUTOCAST.mdH A D25-Apr-20256.8 KiB225165

OVERVIEW.mdH A D25-Apr-202593.8 KiB1,5511,176

README.mdH A D25-Apr-20251.6 KiB3126

jit_log.cppH A D25-Apr-20255 KiB187152

jit_log.hH A D25-Apr-20254.7 KiB12768

jit_opt_limit.cppH A D25-Apr-20252.2 KiB8469

jit_opt_limit.hH A D25-Apr-20251.3 KiB388

resource_guard.hH A D25-Apr-2025440 2618

README.md

1# PyTorch JIT
2
3This folder contains (most of) the C++ code for the PyTorch JIT, a language
4and compiler stack for executing PyTorch models portably and efficiently. To
5learn more about the JIT from a user perspective, please consult our
6[reference documentation](https://pytorch.org/docs/stable/jit.html) and
7[tutorials](https://pytorch.org/tutorials/beginner/Intro_to_TorchScript_tutorial.html).
8
9A brief summary of the source tree:
10- [OVERVIEW.md](OVERVIEW.md): High-level technical overview of the JIT.
11- [frontend/](frontend): Taking PyTorch modules in Python and translating them into the
12  JIT IR.
13- [ir/](ir): Core IR abstractions.
14- [runtime/](runtime): Interpreter, graph execution, and JIT operators.
15- [codegen/](codegen): Generating efficient, hardware-specific code for JIT subgraphs.
16- [serialization/](serialization): Saving and loading modules.
17- [api/](api): Any user-facing C++ or Python interfaces.
18- [python/](python): Binding stuff into Python or accessing information from the Python
19  environment.
20- [testing/](testing): Utilities and helpers for testing.
21- [mobile/](mobile): Mobile-specific implementations of runtime components.
22- [passes/](passes): IR-to-IR passes, generally for optimization and lowering.
23- [generated/](generated): This folder is generated by the PyTorch build, and contains
24  bindings for native PyTorch operators into the JIT.
25
26**Refer** to each folder for more in-depth documentation.
27
28Other relevant parts of the codebase not contained here:
29- [aten/src/ATen/core](/aten/src/ATen/core): contains JIT code re-used by other elements of the
30  runtime system (eager, mobile, etc.)
31