pytorch/torch/csrc/jit
2020-11-13 08:14:10 -08:00
..
api Run __setstate__ when cloning modules (#45858) 2020-10-16 15:55:31 -07:00
backends [JIT] Modify to_backend API so that it accepts wrapped modules (#43612) 2020-09-28 17:17:01 -07:00
codegen [nvFuser] Switching to CudaFusionGuard from BailOut for nvfuser - update 2 (#46452) 2020-10-19 15:44:31 -07:00
cuda Merge branch 'cuda_stream_jit' of https://github.com/pytorch/pytorch into cuda_stream_jit 2020-11-13 08:14:10 -08:00
docs [jit] update to serialization doc (#39025) 2020-06-05 17:49:08 -07:00
frontend Merge branch 'cuda_stream_jit' of https://github.com/pytorch/pytorch into cuda_stream_jit 2020-11-13 08:14:10 -08:00
ir Merge branch 'cuda_stream_jit' of https://github.com/pytorch/pytorch into cuda_stream_jit 2020-11-13 08:14:10 -08:00
mobile [PyTorch][QPL] Add instance_key into MOBILE_MODULE_LOAD_STATS logging. (#45518) 2020-09-30 23:31:35 -07:00
passes Make add_relu an internal function (#46676) 2020-10-22 18:08:15 -07:00
python Merge branch 'cuda_stream_jit' of https://github.com/pytorch/pytorch into cuda_stream_jit 2020-11-13 08:14:10 -08:00
runtime Merge branch 'cuda_stream_jit' of https://github.com/pytorch/pytorch into cuda_stream_jit 2020-11-13 08:14:10 -08:00
serialization Add an option to getWriteableTensorData to avoid copy CUDA tensor to CPU (#46524) 2020-10-20 08:54:58 -07:00
tensorexpr Revert D24395956: [pytorch][PR] Replace flatten tensors with flatten loops. 2020-10-20 15:42:23 -07:00
testing Fix check highlight in filecheck. (#42417) 2020-08-03 18:49:22 -07:00
jit_log.cpp [jit] Speed up saving in case of many classes (#44589) 2020-09-15 15:10:45 -07:00
jit_log.h [JIT] Update comment in jit_log.h. (#46301) 2020-10-13 23:42:28 -07:00
OVERVIEW.md Fix grammar and spelling errors (#46713) 2020-10-23 01:31:17 -07: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.)