pytorch/tools
Ann Shan 330a107199 Refactor lite serializer dependencies from full jit (#42127)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/42127

This diff renames core_autograd_sources to core_trainer_sources and moves/adds dependencies for the lite trainer in order to build the serializer functionality internally.
ghstack-source-id: 108589416

Test Plan: Manually tested serializer functionality from the internal lite trainer and verified that data is written correctly.

Reviewed By: iseeyuan

Differential Revision: D22738293

fbshipit-source-id: 992beb0c4368b2395f5bd5563fb2bc12ddde39a1
2020-07-27 15:38:54 -07:00
..
amd_build [ROCm] update hip library name (#41813) 2020-07-22 09:42:45 -07:00
autograd [pytorch] bump up variable version regardless of differentiability (#41269) 2020-07-23 12:07:32 -07:00
clang_format_hash
code_analyzer [pytorch] tweak code analyzer script to handle new namespaces (#40276) 2020-06-19 14:54:21 -07:00
config
docker
jit remediation of S205607 2020-07-17 17:19:47 -07:00
pyi change 2 instances of blacklist to blocklist in tools/pyi/gen_pyi.py (#41979) 2020-07-27 14:12:32 -07:00
rules remediation of S205607 2020-07-17 17:19:47 -07:00
setup_helpers rewrite C++ __torch_function__ handling to work with TensorList operands (#41575) 2020-07-17 08:54:29 -07:00
shared
__init__.py remediation of S205607 2020-07-17 17:19:47 -07:00
aten_mirror.sh
build_libtorch.py
build_pytorch_libs.py
build_variables.bzl Refactor lite serializer dependencies from full jit (#42127) 2020-07-27 15:38:54 -07:00
clang_format_all.py
clang_format_ci.sh Removed whitelist reference from tools/clang_format_ci.sh (#41636) 2020-07-21 12:32:14 -07:00
clang_format_utils.py
clang_tidy.py
download_mnist.py
flake8_hook.py
generated_dirs.txt
git-clang-format
git-pre-commit Reverts running clang-tidy on ATen (#40764) 2020-06-30 09:35:55 -07:00
git_add_generated_dirs.sh
git_reset_generated_dirs.sh
pytorch.version
README.md
update_disabled_tests.sh

This folder contains a number of scripts which are used as part of the PyTorch build process. This directory also doubles as a Python module hierarchy (thus the __init__.py).

Overview

Modern infrastructure:

  • autograd - Code generation for autograd. This includes definitions of all our derivatives.
  • jit - Code generation for JIT
  • shared - Generic infrastructure that scripts in tools may find useful.
    • module_loader.py - Makes it easier to import arbitrary Python files in a script, without having to add them to the PYTHONPATH first.

Legacy infrastructure (we should kill this):

  • cwrap - Implementation of legacy code generation for THNN/THCUNN. This is used by nnwrap.

Build system pieces:

  • setup_helpers - Helper code for searching for third-party dependencies on the user system.
  • build_pytorch_libs.py - cross-platform script that builds all of the constituent libraries of PyTorch, but not the PyTorch Python extension itself.
  • build_libtorch.py - Script for building libtorch, a standalone C++ library without Python support. This build script is tested in CI.

Developer tools which you might find useful:

Important if you want to run on AMD GPU:

  • amd_build - HIPify scripts, for transpiling CUDA into AMD HIP. Right now, PyTorch and Caffe2 share logic for how to do this transpilation, but have separate entry-points for transpiling either PyTorch or Caffe2 code.
    • build_amd.py - Top-level entry point for HIPifying our codebase.

Tools which are only situationally useful: