pytorch/torch/csrc/autograd/functions
Edward Yang adb7df7117 Consistently use TORCH_CUDA_API for all files that live in cuda targets. (#29158)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/29158

My plan is to split out libtorch_cuda.so from libtorch.so.  To do this,
I need accurate _API annotations for files in these directories.

I determined the correct set of annotations by looking at
tools/build_variables.py and making sure every file that was a member
of the libtorch_cuda/ATen-cu targets had these annotations.  (torch-cpp-cuda
doesn't count since that's going to be where the stuff that has explicit
USE_CUDA lives, so it's going to be in a separate dynamic library).

As future work, it would be good to setup a lint rule to help people
understand what the correct _API annotation to use in a file is; it
would also be good to reorganize folder structure so that the library
structure is clearer.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

Test Plan: Imported from OSS

Differential Revision: D18309593

Pulled By: ezyang

fbshipit-source-id: de710e721b6013a09dad17b35f9a358c95a91030
2019-11-06 15:02:07 -08:00
..
accumulate_grad.cpp provide memory format as Contiguous explicitly when calling to clone() (#28029) 2019-10-28 08:21:39 -07:00
accumulate_grad.h Rename torch::autograd::Function to torch::autograd::Node 2019-07-23 20:52:22 -07:00
basic_ops.cpp Remove Variable::Impl and DifferentiableViewImpl (#17072) 2019-05-23 21:09:04 -07:00
basic_ops.h Rename torch::autograd::Function to torch::autograd::Node 2019-07-23 20:52:22 -07:00
comm.cpp Rename torch::autograd::Function to torch::autograd::Node 2019-07-23 20:52:22 -07:00
comm.h Consistently use TORCH_CUDA_API for all files that live in cuda targets. (#29158) 2019-11-06 15:02:07 -08:00
init.cpp Exclude more files in torch/csrc/distributed when USE_DISTRIBUTED=0 (#28621) 2019-10-28 08:03:30 -07:00
pybind.h Invert ownership between PyFunction and THPFunction. 2019-07-22 14:13:14 -07:00
tensor.cpp Autogenerated contiguous memory format for old *_like calls 2019-11-06 07:24:38 -08:00
tensor.h Delete toType(const DeprecatedTypeProperties&, ...) (#25332) 2019-08-29 16:20:18 -07:00
utils.cpp Rename torch::autograd::Function to torch::autograd::Node 2019-07-23 20:52:22 -07:00
utils.h Rename torch::autograd::Function to torch::autograd::Node 2019-07-23 20:52:22 -07:00