pytorch/torch/csrc/jit
Jerry Zhang f5f1e5e7f6 [quant][graphmode][refactor] Factor out getInvokedMethod (#33649)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/33649

Test Plan:
.

Imported from OSS

Differential Revision: D20123589

fbshipit-source-id: 0853d757434fb85c6d86666ff9fc991f8c4cb4bc
2020-02-27 23:48:09 -08:00
..
api [jit] do the code reorg (#33851) 2020-02-27 13:02:51 -08:00
codegen/fuser [jit] do the code reorg (#33851) 2020-02-27 13:02:51 -08:00
docs [jit] add top-level readme to csrc/jit (#33916) 2020-02-27 19:21:05 -08:00
frontend [JIT] Implement Tensor.tolist() (#33472) 2020-02-27 21:45:46 -08:00
ir [JIT] Implement Tensor.tolist() (#33472) 2020-02-27 21:45:46 -08:00
mobile [jit] do the code reorg (#33851) 2020-02-27 13:02:51 -08:00
passes [quant][graphmode][refactor] Factor out getInvokedMethod (#33649) 2020-02-27 23:48:09 -08:00
python [Revert] manual revert of D19918320 (#33920) 2020-02-27 21:22:36 -08:00
runtime [JIT] Implement Tensor.tolist() (#33472) 2020-02-27 21:45:46 -08:00
serialization [JIT] Implement Tensor.tolist() (#33472) 2020-02-27 21:45:46 -08:00
tensorexpr [TensorExpr] Add IR Printer. (#33220) 2020-02-21 13:10:26 -08:00
testing [jit] do the code reorg (#33851) 2020-02-27 13:02:51 -08:00
jit_log.cpp [jit] do the code reorg (#33851) 2020-02-27 13:02:51 -08:00
jit_log.h Add traces to specialize_autograd and lower_grad_of (2nd try) 2019-09-24 09:58:43 -07:00
netdef_converter.cpp s/uniqueName/debugName/ (#22096) 2019-06-21 20:54:53 -07:00
netdef_converter.h [jit] do the code reorg (#33851) 2020-02-27 13:02:51 -08:00
OVERVIEW.md [jit] fix up refs in overview.md (#33919) 2020-02-27 19:22:51 -08:00
README.md [jit] add top-level readme to csrc/jit (#33916) 2020-02-27 19:21:05 -08:00
resource_guard.h clang format world (#15524) 2018-12-26 06:55:01 -08: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.)