mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Remove the unnecessary cuda/Tensor.cpp (#152522)
As the title stated. **Question:** I have carefully looked through all the .h files in Tensor.cpp and from my perspective this file does not make sense. Does anyone know what the background is for doing this? Pull Request resolved: https://github.com/pytorch/pytorch/pull/152522 Approved by: https://github.com/Skylion007, https://github.com/albanD, https://github.com/eqy ghstack dependencies: #152512, #152513, #152521
This commit is contained in:
@ -790,7 +790,6 @@ libtorch_python_cuda_sources = libtorch_python_cuda_core_sources + [
|
||||
"torch/csrc/cuda/python_nccl.cpp",
|
||||
"torch/csrc/cuda/shared/cudnn.cpp",
|
||||
"torch/csrc/cuda/shared/cusparselt.cpp",
|
||||
"torch/csrc/cuda/Tensor.cpp",
|
||||
]
|
||||
|
||||
libtorch_python_xpu_sources = [
|
||||
|
@ -1,11 +0,0 @@
|
||||
// Order of these includes matters, which should be fixed.
|
||||
// clang-format off
|
||||
#include <torch/csrc/python_headers.h>
|
||||
#include <structmember.h>
|
||||
|
||||
#include <torch/csrc/cuda/THCP.h>
|
||||
|
||||
#include <torch/csrc/utils/tensor_numpy.h>
|
||||
#include <torch/csrc/copy_utils.h>
|
||||
#include <torch/csrc/DynamicTypes.h>
|
||||
// clang-format on
|
Reference in New Issue
Block a user