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
).
Modern infrastructure:
Legacy infrastructure (we should kill this):
Build system pieces:
Developer tools which you might find useful:
.github/workflows/*.yml
into a specified dir, on which run_shellcheck.sh can be run. Exits with nonzero status if any of the extracted scripts contain GitHub Actions expressions: ${{ <expression> }}
mypy
on a single file using the appropriate subset of our mypy*.ini
configs.*.sh
files (recursively) in the directories specified as arguments, and run ShellCheck on all of them.--regex
) from a --file
, convert to the JSON format accepted by pytorch/add-annotations-github-action, and translate line numbers from HEAD
back in time to the given --commit
by running git diff-index --unified=0
appropriately.Important if you want to run on AMD GPU:
Tools which are only situationally useful: