Shard python_torch_functions.cpp (#62187)
authorPeter Bell <peterbell10@live.co.uk>
Wed, 25 Aug 2021 22:05:14 +0000 (15:05 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 25 Aug 2021 22:10:43 +0000 (15:10 -0700)
commit44ede71751440975e985944503d548e101a42a64
tree0f172017a04a01cec84543a3891b87bba91cbb7f
parent730ce29bafcdf21cc7000dccbbed4c7af500cf27
Shard python_torch_functions.cpp (#62187)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/62187

This file can take 3 minutes on its own to compile, and after
python_functions.cpp is the second limiting factor for compile time of
`libtorch_python` on a 32-core threadripper. This splits it into 3 files that
take around 1 minute each to compile.

Test Plan: Imported from OSS

Reviewed By: H-Huang

Differential Revision: D29962048

Pulled By: albanD

fbshipit-source-id: 99016d75912bff483fe21b130cef43a6882f8c0e
BUILD.bazel
caffe2/CMakeLists.txt
tools/autograd/gen_python_functions.py
tools/autograd/templates/python_torch_functions.cpp
tools/build_variables.bzl
tools/codegen/gen.py
torch/csrc/autograd/python_torch_functions.h [new file with mode: 0644]
torch/csrc/autograd/python_torch_functions_manual.cpp [new file with mode: 0644]