pytorch/torch/csrc/jit
Han Qi (qihqi) 25eb7c3ae3 Clean up dependancy for flatbuffer_loader (#86041)
Test Plan: waitforsandcastle

Differential Revision: D38445936

Pull Request resolved: https://github.com/pytorch/pytorch/pull/86041
Approved by: https://github.com/cccclai
2022-12-08 03:48:04 +00:00
..
api
backends [xnnpack][lite-int] Handle Constant Data (#89445) 2022-11-22 02:20:54 +00:00
codegen Migrate PyTorch to C++17 (#85969) 2022-12-08 02:27:48 +00:00
cuda
docs Fix typo under torch directory (#87274) 2022-10-21 14:22:20 +00:00
frontend [JIT][Security] Do not blindly eval input string (#89189) 2022-11-17 22:05:30 +00:00
ir Fix typos in messages under torch (#88961) 2022-11-14 19:06:41 +00:00
mobile Clean up dependancy for flatbuffer_loader (#86041) 2022-12-08 03:48:04 +00:00
operator_upgraders Fix typos in .md and .rst files (#88962) 2022-11-17 03:37:02 +00:00
passes quantization: deprecate observer compute_dtype and replace with is_dynamic (#85431) 2022-11-24 07:07:34 +00:00
python Use the Python frame safely in _pythonCallstack (#88993) 2022-11-17 00:59:15 +00:00
runtime Remove deprecated usage of is_pod/is_pod_v (#88918) 2022-12-05 16:50:00 +00:00
serialization Clean up dependancy for flatbuffer_loader (#86041) 2022-12-08 03:48:04 +00:00
tensorexpr Migrate PyTorch to C++17 (#85969) 2022-12-08 02:27:48 +00:00
testing
jit_log.cpp
jit_log.h
jit_opt_limit.cpp
jit_opt_limit.h
JIT-AUTOCAST.md
OVERVIEW.md Fix typos under torch directory (#88172) 2022-11-01 22:58:22 +00:00
README.md
resource_guard.h

PyTorch JIT

This folder contains (most of) the C++ code for the PyTorch JIT, a language and compiler stack for executing PyTorch models portably and efficiently. To learn more about the JIT from a user perspective, please consult our reference documentation and tutorials.

A brief summary of the source tree:

  • OVERVIEW.md: High-level technical overview of the JIT.
  • frontend/: Taking PyTorch modules in Python and translating them into the JIT IR.
  • ir/: Core IR abstractions.
  • runtime/: Interpreter, graph execution, and JIT operators.
  • codegen/: Generating efficient, hardware-specific code for JIT subgraphs.
  • serialization/: Saving and loading modules.
  • api/: Any user-facing C++ or Python interfaces.
  • python/: Binding stuff into Python or accessing information from the Python environment.
  • testing/: Utilities and helpers for testing.
  • mobile/: Mobile-specific implementations of runtime components.
  • passes/: IR-to-IR passes, generally for optimization and lowering.
  • generated/: This folder is generated by the PyTorch build, and contains bindings for native PyTorch operators into the JIT.

Refer to each folder for more in-depth documentation.

Other relevant parts of the codebase not contained here:

  • aten/src/ATen/core: contains JIT code re-used by other elements of the runtime system (eager, mobile, etc.)