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:
FFFrog
2025-04-30 15:38:13 +08:00
committed by PyTorch MergeBot
parent 8562457cba
commit c8bac51ec1
2 changed files with 0 additions and 12 deletions

View File

@ -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 = [

View File

@ -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