mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Some notes about PyTorch/Caffe2 merge. (#6147)
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
This commit is contained in:
parent
9ce21b0e90
commit
d93d41b2ef
1 changed files with 24 additions and 0 deletions
|
|
@ -234,3 +234,27 @@ If you are working on the CUDA code, here are some useful CUDA debugging tips:
|
|||
|
||||
|
||||
Hope this helps, and thanks for considering to contribute.
|
||||
|
||||
## Caffe2 notes
|
||||
|
||||
In 2018, we merged Caffe2 into the PyTorch source repository. While the
|
||||
steady state aspiration is that Caffe2 and PyTorch share code freely,
|
||||
in the meantime there will be some separation.
|
||||
|
||||
If you submit a PR to only PyTorch or only Caffe2 code, CI will only
|
||||
run for the project you edited. The logic for this is implemented
|
||||
in `.jenkins/pytorch/dirty.sh` and `.jenkins/caffe2/dirty.sh`; you
|
||||
can look at this to see what path prefixes constitute changes.
|
||||
This also means if you ADD a new top-level path, or you start
|
||||
sharing code between projects, you need to modify these files.
|
||||
|
||||
There are a few "unusual" directories which, for historical reasons,
|
||||
are Caffe2/PyTorch specific. Here they are:
|
||||
|
||||
- `CMakeLists.txt`, `Makefile`, `binaries`, `cmake`, `conda`, `modules`,
|
||||
`scripts` are Caffe2-specific. Don't put PyTorch code in them without
|
||||
extra coordination.
|
||||
|
||||
- `mypy*`, `requirements.txt`, `setup.py`, `test`, `tools` are
|
||||
PyTorch-specific. Don't put Caffe2 code in them without extra
|
||||
coordination.
|
||||
|
|
|
|||
Loading…
Reference in a new issue