pytorch/torch/csrc/jit
Raghavan Raman 59dd12042e [nnc] Removed const from all fields in IR. (#62336)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/62336

This PR was generated by removing `const` for all types of nodes in NNC IR, and fixing compilation errors that were the result of this change.

This is the first step in making all NNC mutations in-place.

Test Plan: Imported from OSS

Reviewed By: iramazanli

Differential Revision: D30049829

Pulled By: navahgar

fbshipit-source-id: ed14e2d2ca0559ffc0b92ac371f405579c85dd63
2021-08-03 11:44:36 -07:00
..
api Fix setArgumentNames and make Script/Python consistent (#62442) 2021-07-29 21:29:06 -07:00
backends [Pytorch Backend Delegation] Annotate function args with type information (#62433) 2021-07-30 11:34:40 -07:00
codegen irange-ify 3 (#62112) 2021-07-26 12:56:58 -07:00
cuda Make pytorch clang-tidy clean (#60649) 2021-07-01 12:21:07 -07:00
docs s/foward/forward/g (#58497) 2021-05-19 11:42:42 -07:00
frontend irange-ify 5 (#62114) 2021-07-26 11:07:54 -07:00
ir irange-ify 6 (#62115) 2021-07-28 13:32:11 -07:00
mobile [Pytorch Edge] Black Box Compatibility API (#61477) 2021-08-03 11:27:28 -07:00
passes irange-ify 8 (#62422) 2021-07-30 20:31:58 -07:00
python irange-ify 11 (#62121) 2021-07-28 13:32:09 -07:00
runtime [jit] Renamed prim::Concat as prim::VarConcat (#61983) 2021-07-29 10:28:59 -07:00
serialization [PyTorch][Edge] Serializing sub modules with same names (#61933) 2021-07-26 16:31:48 -07:00
tensorexpr [nnc] Removed const from all fields in IR. (#62336) 2021-08-03 11:44:36 -07:00
testing irange-ify 15 (#62123) 2021-07-30 10:41:33 -07:00
jit_log.cpp [JIT] clean up (#60390) 2021-07-09 16:28:27 -07:00
jit_log.h [JIT] clean up (#60390) 2021-07-09 16:28:27 -07:00
jit_opt_limit.cpp Implement optimization bisect (#49031) 2021-01-11 12:25:28 -08:00
jit_opt_limit.h Update JIT_OPT macro for easier use (#50602) 2021-01-20 11:15:20 -08:00
OVERVIEW.md [JIT] improve documentation (#57991) 2021-05-19 11:47:32 -07:00
README.md [JIT] improve documentation (#57991) 2021-05-19 11:47:32 -07:00
resource_guard.h Fix modernize-use-equals-default nolint failures in torch/csrcs (#61142) 2021-07-06 09:46:46 -07:00

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.)