pytorch/torch/csrc/jit
Edward Z. Yang 4fa8d774b8
Add macro C10_AS_INTARRAYREF_SLOW (#90675)
This makes it easier to narrow down who is throwing the error,
instead of having to use gdb.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Differential Revision: [D42088781](https://our.internmc.facebook.com/intern/diff/D42088781)
2022-12-16 15:10:35 -08:00
..
api
backends [BE] Tweak Meta copyright headers (#90805) 2022-12-14 20:30:31 +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 Add macro C10_AS_INTARRAYREF_SLOW (#90675) 2022-12-16 15:10:35 -08:00
ir Fix typos in messages under torch (#88961) 2022-11-14 19:06:41 +00:00
mobile [Fix]: Add missing std::vector reserve in aten and torch/csrc (#90627) 2022-12-13 14:46:27 +00:00
operator_upgraders Fix typos in .md and .rst files (#88962) 2022-11-17 03:37:02 +00:00
passes Revert "[JIT] Frozen Graph Linear-BatchNormNd Folding (#86706)" 2022-12-16 00:49:54 +00:00
python Revert "[JIT] Frozen Graph Linear-BatchNormNd Folding (#86706)" 2022-12-16 00:49:54 +00:00
runtime Remove deprecated usage of is_pod/is_pod_v (#88918) 2022-12-05 16:50:00 +00:00
serialization [Fix]: Add missing std::vector reserve in aten and torch/csrc (#90627) 2022-12-13 14:46:27 +00:00
tensorexpr [Fix]: remove unnecessary copies in aten, c10, and torch bindings (#90629) 2022-12-12 17:05:52 +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.)