pytorch/tools
2024-06-28 16:02:35 +00:00
..
alerts 2023-06-21 nightly release (f3c3d12efb) 2023-06-21 00:05:18 -07:00
amd_build 2024-06-28 nightly release (424068d0d2) 2024-06-28 16:02:35 +00:00
autograd 2024-06-28 nightly release (424068d0d2) 2024-06-28 16:02:35 +00:00
bazel_tools
build/bazel 2024-06-19 nightly release (99f042d336) 2024-06-19 07:33:50 +00:00
build_defs 2023-12-15 nightly release (9056903b09) 2023-12-15 07:33:35 +00:00
code_analyzer 2024-05-26 nightly release (ee6cb6daa1) 2024-05-26 07:33:37 +00:00
code_coverage 2024-06-28 nightly release (424068d0d2) 2024-06-28 16:02:35 +00:00
config
coverage_plugins_package 2023-07-19 nightly release (9c225c9b9a) 2023-07-19 07:33:53 +00:00
dynamo 2024-04-06 nightly release (22b9987144) 2024-04-06 07:33:35 +00:00
gdb 2023-07-22 nightly release (0ad93a3d56) 2023-07-22 07:33:35 +00:00
github 2023-06-23 nightly release (5a97c947c6) 2023-06-23 00:04:57 -07:00
iwyu 2023-11-20 nightly release (7963aaac41) 2023-11-20 07:33:50 +00:00
jit 2023-07-19 nightly release (9c225c9b9a) 2023-07-19 07:33:53 +00:00
linter 2024-06-28 nightly release (424068d0d2) 2024-06-28 16:02:35 +00:00
lite_interpreter 2024-05-26 nightly release (ee6cb6daa1) 2024-05-26 07:33:37 +00:00
lldb 2023-03-21 nightly release (d2f5722996) 2023-03-21 00:03:32 -07:00
onnx 2024-06-28 nightly release (424068d0d2) 2024-06-28 16:02:35 +00:00
pyi 2024-06-25 nightly release (00f675bb4c) 2024-06-25 03:43:16 +00:00
rules
rules_cc 2023-02-28 nightly release (58648822b6) 2023-02-28 00:03:13 -08:00
setup_helpers 2024-06-28 nightly release (424068d0d2) 2024-06-28 16:02:35 +00:00
shared 2023-05-17 nightly release (41d668c9dc) 2023-05-17 00:03:24 -07:00
stats 2024-06-28 nightly release (424068d0d2) 2024-06-28 16:02:35 +00:00
test 2024-06-28 nightly release (424068d0d2) 2024-06-28 16:02:35 +00:00
testing 2024-06-28 nightly release (424068d0d2) 2024-06-28 16:02:35 +00:00
__init__.py
bazel.bzl 2023-05-24 nightly release (45843c7f41) 2023-05-24 00:04:57 -07:00
BUCK.bzl 2024-02-15 nightly release (cd08dc37f8) 2024-02-15 07:33:42 +00:00
BUCK.oss
build_libtorch.py 2024-06-28 nightly release (424068d0d2) 2024-06-28 16:02:35 +00:00
build_pytorch_libs.py
build_with_debinfo.py 2024-02-17 nightly release (becfda005e) 2024-02-17 07:33:36 +00:00
download_mnist.py 2023-07-22 nightly release (0ad93a3d56) 2023-07-22 07:33:35 +00:00
extract_scripts.py 2024-05-26 nightly release (ee6cb6daa1) 2024-05-26 07:33:37 +00:00
gen_flatbuffers.sh
gen_vulkan_spv.py 2024-06-28 nightly release (424068d0d2) 2024-06-28 16:02:35 +00:00
generate_torch_version.py 2024-03-23 nightly release (c677221798) 2024-03-23 07:33:27 +00:00
generated_dirs.txt
git_add_generated_dirs.sh
git_reset_generated_dirs.sh
nightly.py 2023-09-01 nightly release (4a9c6f1b73) 2023-09-01 07:33:43 +00:00
nvcc_fix_deps.py 2024-02-14 nightly release (16369816a2) 2024-02-14 07:33:29 +00:00
pytorch.version
README.md 2023-03-29 nightly release (91166ef7e7) 2023-03-29 00:03:21 -07:00
render_junit.py 2022-12-07 nightly release (26d1dbc4f8) 2022-12-07 00:02:57 -08:00
substitute.py 2023-11-16 nightly release (a3b859fc67) 2023-11-16 07:33:45 +00:00
update_masked_docs.py 2024-01-29 nightly release (890d8e6692) 2024-01-29 07:33:38 +00:00
vscode_settings.py 2024-06-28 nightly release (424068d0d2) 2024-06-28 16:02:35 +00:00

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.

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: