pytorch/tools
2024-12-30 07:34:20 +00:00
..
alerts 2024-06-30 nightly release (9ae78a578c) 2024-06-30 07:33:39 +00:00
amd_build 2024-12-30 nightly release (2ed4d65af0) 2024-12-30 07:34:20 +00:00
autograd 2024-12-17 nightly release (c15638d803) 2024-12-17 07:34:49 +00:00
bazel_tools
build/bazel 2024-10-29 nightly release (4ee514144b) 2024-10-29 07:34:47 +00:00
build_defs 2024-07-20 nightly release (7c299b46ca) 2024-07-20 07:34:08 +00:00
code_analyzer 2024-12-12 nightly release (1dd6f21029) 2024-12-12 07:35:13 +00:00
code_coverage 2024-12-30 nightly release (2ed4d65af0) 2024-12-30 07:34:20 +00:00
config
coverage_plugins_package 2024-06-30 nightly release (9ae78a578c) 2024-06-30 07:33:39 +00:00
dynamo 2024-06-30 nightly release (9ae78a578c) 2024-06-30 07:33:39 +00:00
flight_recorder 2024-12-18 nightly release (c06b5048ba) 2024-12-18 07:33:51 +00:00
gdb 2024-11-20 nightly release (cee3f8541e) 2024-11-20 07:34:51 +00:00
github 2024-06-30 nightly release (9ae78a578c) 2024-06-30 07:33:39 +00:00
iwyu 2024-06-30 nightly release (9ae78a578c) 2024-06-30 07:33:39 +00:00
jit 2024-12-27 nightly release (1cd70e7e23) 2024-12-27 07:33:50 +00:00
linter 2024-12-30 nightly release (2ed4d65af0) 2024-12-30 07:34:20 +00:00
lite_interpreter 2024-12-13 nightly release (ceb664aca6) 2024-12-13 07:34:15 +00:00
lldb 2024-06-30 nightly release (9ae78a578c) 2024-06-30 07:33:39 +00:00
onnx 2024-12-30 nightly release (2ed4d65af0) 2024-12-30 07:34:20 +00:00
packaging 2024-12-18 nightly release (c06b5048ba) 2024-12-18 07:33:51 +00:00
pyi 2024-12-12 nightly release (1dd6f21029) 2024-12-12 07:35:13 +00:00
rules
rules_cc 2024-11-28 nightly release (fea771dcce) 2024-11-28 07:35:07 +00:00
setup_helpers 2024-12-30 nightly release (2ed4d65af0) 2024-12-30 07:34:20 +00:00
shared
stats 2024-12-30 nightly release (2ed4d65af0) 2024-12-30 07:34:20 +00:00
test 2024-12-30 nightly release (2ed4d65af0) 2024-12-30 07:34:20 +00:00
testing 2024-12-30 nightly release (2ed4d65af0) 2024-12-30 07:34:20 +00:00
__init__.py
bazel.bzl
BUCK.bzl 2024-07-20 nightly release (7c299b46ca) 2024-07-20 07:34:08 +00:00
BUCK.oss
build_libtorch.py 2024-12-30 nightly release (2ed4d65af0) 2024-12-30 07:34:20 +00:00
build_pytorch_libs.py 2024-11-25 nightly release (2398e758d2) 2024-11-25 07:34:49 +00:00
build_with_debinfo.py 2024-12-27 nightly release (1cd70e7e23) 2024-12-27 07:33:50 +00:00
download_mnist.py 2024-06-30 nightly release (9ae78a578c) 2024-06-30 07:33:39 +00:00
extract_scripts.py 2024-12-12 nightly release (1dd6f21029) 2024-12-12 07:35:13 +00:00
gen_flatbuffers.sh
gen_vulkan_spv.py 2024-12-30 nightly release (2ed4d65af0) 2024-12-30 07:34:20 +00:00
generate_torch_version.py 2024-12-27 nightly release (1cd70e7e23) 2024-12-27 07:33:50 +00:00
generated_dirs.txt
git_add_generated_dirs.sh
git_reset_generated_dirs.sh
nightly.py 2024-12-28 nightly release (d3e9133ab2) 2024-12-28 07:33:58 +00:00
nightly_hotpatch.py 2024-12-12 nightly release (1dd6f21029) 2024-12-12 07:35:13 +00:00
nvcc_fix_deps.py 2024-12-27 nightly release (1cd70e7e23) 2024-12-27 07:33:50 +00:00
README.md
render_junit.py 2024-06-30 nightly release (9ae78a578c) 2024-06-30 07:33:39 +00: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-07-18 nightly release (874bbc53c9) 2024-07-18 07:33:37 +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: