Skip to content

Commit 9302f86

Browse files
authored
Remove unused file TensorDocstrings.cpp (pytorch#481)
Tensor docstrings are created in _tensor_docs.py
1 parent ac8a5e7 commit 9302f86

File tree

4 files changed

+0
-11
lines changed

4 files changed

+0
-11
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ dist/
33
torch.egg-info/
44
*/**/__pycache__
55
torch/csrc/generic/TensorMethods.cpp
6-
torch/csrc/TensorDocstrings.cpp
7-
torch/csrc/TensorDocstrings.h
86
torch/lib/*.so*
97
torch/lib/*.dylib*
108
torch/lib/*.h

setup.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@ def run(self):
102102
BoolOption(), thp_plugin, AutoGPU(condition='IS_CUDA'),
103103
ArgcountSortPlugin(), KwargsPlugin()
104104
])
105-
with open('torch/csrc/TensorDocstrings.cpp', 'w') as f:
106-
f.write(thp_plugin.generate_docstrings_cpp())
107-
with open('torch/csrc/TensorDocstrings.h', 'w') as f:
108-
f.write(thp_plugin.generate_docstrings_h())
109105
cwrap('torch/csrc/cudnn/cuDNN.cwrap', plugins=[
110106
CuDNNPlugin(), NullableArguments()
111107
])
@@ -192,7 +188,6 @@ def run(self):
192188
"torch/csrc/Size.cpp",
193189
"torch/csrc/Exceptions.cpp",
194190
"torch/csrc/Tensor.cpp",
195-
"torch/csrc/TensorDocstrings.cpp",
196191
"torch/csrc/Storage.cpp",
197192
"torch/csrc/byte_order.cpp",
198193
"torch/csrc/utils.cpp",

torch/csrc/Module.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
#include "cudnn/Module.h"
1212
#endif
1313

14-
#include "TensorDocstrings.h"
15-
1614
#define WITH_NUMPY_IMPORT_ARRAY
1715
#include "THP.h"
1816

torch/csrc/Tensor.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,5 @@
1010
#include "THP.h"
1111
#include "copy_utils.h"
1212

13-
#include "TensorDocstrings.h"
14-
1513
#include "generic/Tensor.cpp"
1614
#include <TH/THGenerateAllTypes.h>

0 commit comments

Comments
 (0)