Skip to content

Files

Latest commit

 

History

History
 
 

torch_patches

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Guidelines For Patch File Names

Files with extension '.diff' are consider as git patches by apply script.

A file for PyTorch PR N needs to be named 'N.diff'.

Patch files which are not related to PyTorch PRs, should begin with an 'X' character, followed by a two digit number, followed by a dash ('-'), a name, and '.diff'. Example:

X10-optimizer.diff

Patch file are alphabetically ordered, so PyTorch PR patches are always applied before the non PyTorch ones.

There's a special file torch_patches/.torch_pin, which is used to coordinate landing PRs in pytorch/pytorch and pytorch/xla.

To test a pytorch/xla PR against a pytorch/pytorch PR or branch, put the PR number or branch name in this file. Example:

#32451
# or
my_awesome_branch # (must live in `pytorch/pytorch`)

In the case where the pytorch/pytorch PR also depends on the pytorch/xla PR, you will also need to update the https://github.com/pytorch/pytorch/blob/main/.github/ci_commit_pins/xla.txt to match the latest hash of your pytorch/xla PR. To be noted, the hash from a PR produced by a fork won't work in this case. Then you need to find someone from the pytorch/xla team to produe a branch PR for you.